Linux ih01.iridiumhosting.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
LiteSpeed
Server IP : 67.227.241.211 & Your IP : 216.73.216.164
Domains :
Cant Read [ /etc/named.conf ]
User : dustinhy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
dustinhy /
prositehelp.com /
wp-includes /
Delete
Unzip
Name
Size
Permission
Date
Action
ID3
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
IXR
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
PHPMailer
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
Requests
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
SimplePie
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
Text
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
assets
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-bindings
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-patterns
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-supports
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
blocks
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
certificates
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
css
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
customize
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
fonts
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
html-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
images
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
interactivity-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
js
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
l10n
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
php-compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
pomo
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
rest-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
sitemaps
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
sodium_compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
style-engine
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
theme-compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
widgets
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
.htaccess
517
B
-r-xr-xr-x
2026-06-12 04:06
admin-bar.php
36.03
KB
-rw-r--r--
2024-04-06 16:17
atomlib.php
11.67
KB
-rw-r--r--
2022-05-30 15:11
author-template.php
18.51
KB
-rw-r--r--
2023-09-03 19:58
block-bindings.php
5.51
KB
-rw-r--r--
2024-04-06 16:17
block-editor.php
27.27
KB
-rw-r--r--
2023-11-21 00:07
block-i18n.json
316
B
-rw-r--r--
2022-03-14 03:11
block-patterns.php
12.85
KB
-rw-r--r--
2024-04-06 16:17
block-template-utils.php
52.6
KB
-rw-r--r--
2024-05-07 18:07
block-template.php
12
KB
-rw-r--r--
2023-11-21 00:07
blocks.php
81.39
KB
-rw-r--r--
2025-02-06 07:49
bookmark-template.php
12.61
KB
-rw-r--r--
2023-09-03 19:58
bookmark.php
15.06
KB
-rw-r--r--
2024-04-06 16:17
cache-compat.php
5.83
KB
-rw-r--r--
2022-11-06 19:29
cache.php
13.16
KB
-rw-r--r--
2022-11-06 19:29
canonical.php
33.7
KB
-rw-r--r--
2024-04-06 16:17
capabilities.php
39.09
KB
-rw-r--r--
2023-09-03 19:58
category-template.php
55.67
KB
-rw-r--r--
2023-11-21 00:07
category.php
12.41
KB
-rw-r--r--
2023-11-21 00:07
class-IXR.php
2.48
KB
-rw-r--r--
2020-04-02 13:44
class-avif-info.php
28.92
KB
-rw-r--r--
2024-05-07 18:07
class-feed.php
529
B
-rw-r--r--
2020-04-02 13:44
class-http.php
367
B
-rw-r--r--
2022-11-06 19:29
class-json.php
42.66
KB
-rw-r--r--
2023-04-17 00:34
class-oembed.php
401
B
-rw-r--r--
2022-11-06 19:29
class-phpass.php
6.55
KB
-rw-r--r--
2023-04-17 00:34
class-phpmailer.php
664
B
-rw-r--r--
2020-08-12 23:43
class-pop3.php
20.48
KB
-rw-r--r--
2023-04-17 00:34
class-requests.php
2.18
KB
-rw-r--r--
2023-09-03 19:58
class-simplepie.php
95.76
KB
-rw-r--r--
2024-04-06 16:17
class-smtp.php
457
B
-rw-r--r--
2021-03-16 03:44
class-snoopy.php
36.83
KB
-rw-r--r--
2023-04-17 00:34
class-walker-category-dropdown.php
2.41
KB
-rw-r--r--
2023-11-21 00:07
class-walker-category.php
8.28
KB
-rw-r--r--
2023-11-21 00:07
class-walker-comment.php
13.88
KB
-rw-r--r--
2023-11-21 00:07
class-walker-nav-menu.php
11.05
KB
-rw-r--r--
2023-09-03 19:58
class-walker-page-dropdown.php
2.65
KB
-rw-r--r--
2023-11-21 00:07
class-walker-page.php
7.43
KB
-rw-r--r--
2023-11-21 00:07
class-wp-admin-bar.php
17.43
KB
-rw-r--r--
2024-04-06 16:17
class-wp-ajax-response.php
5.14
KB
-rw-r--r--
2022-11-06 19:29
class-wp-application-passwords.php
12.55
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-bindings-registry.php
8.78
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-bindings-source.php
2.13
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-editor-context.php
1.32
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-list.php
4.65
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-parser-block.php
2.5
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-parser-frame.php
1.87
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-parser.php
11.26
KB
-rw-r--r--
2023-11-21 00:07
class-wp-block-pattern-categories-registry.php
5.25
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-patterns-registry.php
11.73
KB
-rw-r--r--
2026-03-11 09:53
class-wp-block-styles-registry.php
5.75
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-supports.php
5.39
KB
-rw-r--r--
2023-11-21 00:07
class-wp-block-template.php
1.91
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-type-registry.php
4.9
KB
-rw-r--r--
2023-10-13 05:51
class-wp-block-type.php
16.81
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block.php
16.71
KB
-rw-r--r--
2024-04-06 16:17
class-wp-classic-to-block-menu-converter.php
3.99
KB
-rw-r--r--
2023-09-03 19:58
class-wp-comment-query.php
46.86
KB
-rw-r--r--
2024-04-06 16:17
class-wp-comment.php
9.15
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-control.php
25.25
KB
-rw-r--r--
2024-04-06 16:17
class-wp-customize-manager.php
197.52
KB
-rw-r--r--
2024-04-06 16:17
class-wp-customize-nav-menus.php
56.24
KB
-rw-r--r--
2025-10-01 09:57
class-wp-customize-panel.php
10.42
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-section.php
10.98
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-setting.php
29.19
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-widgets.php
69.93
KB
-rw-r--r--
2024-04-06 16:17
class-wp-date-query.php
34.89
KB
-rw-r--r--
2024-04-06 16:17
class-wp-dependencies.php
13.73
KB
-rw-r--r--
2023-11-21 00:07
class-wp-dependency.php
2.57
KB
-rw-r--r--
2023-04-17 00:34
class-wp-duotone.php
38.61
KB
-rw-r--r--
2024-04-06 16:17
class-wp-editor.php
70.47
KB
-rw-r--r--
2024-04-06 16:17
class-wp-embed.php
15.62
KB
-rw-r--r--
2023-09-03 19:58
class-wp-error.php
7.33
KB
-rw-r--r--
2023-04-17 00:34
class-wp-fatal-error-handler.php
7.76
KB
-rw-r--r--
2024-04-06 16:17
class-wp-feed-cache-transient.php
2.53
KB
-rw-r--r--
2022-11-06 19:29
class-wp-feed-cache.php
969
B
-rw-r--r--
2023-11-21 00:07
class-wp-hook.php
15.63
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-cookie.php
7.22
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-curl.php
12.25
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-encoding.php
6.53
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-ixr-client.php
3.42
KB
-rw-r--r--
2026-03-11 09:53
class-wp-http-proxy.php
5.84
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-requests-hooks.php
1.97
KB
-rw-r--r--
2023-04-17 00:34
class-wp-http-requests-response.php
4.3
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-response.php
2.91
KB
-rw-r--r--
2022-11-06 19:29
class-wp-http-streams.php
16.46
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http.php
39.76
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor-gd.php
18.44
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor-imagick.php
31.35
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor.php
17.19
KB
-rw-r--r--
2024-04-06 16:17
class-wp-list-util.php
7.27
KB
-rw-r--r--
2023-11-21 00:07
class-wp-locale-switcher.php
6.47
KB
-rw-r--r--
2024-04-06 16:17
class-wp-locale.php
15.74
KB
-rw-r--r--
2023-09-03 19:58
class-wp-matchesmapregex.php
1.79
KB
-rw-r--r--
2024-04-06 16:17
class-wp-meta-query.php
29.82
KB
-rw-r--r--
2023-11-21 00:07
class-wp-metadata-lazyloader.php
6.67
KB
-rw-r--r--
2023-09-03 19:58
class-wp-navigation-fallback.php
9
KB
-rw-r--r--
2023-11-21 00:07
class-wp-network-query.php
18.99
KB
-rw-r--r--
2024-04-06 16:17
class-wp-network.php
11.9
KB
-rw-r--r--
2023-09-03 19:58
class-wp-object-cache.php
17.18
KB
-rw-r--r--
2023-09-03 19:58
class-wp-oembed-controller.php
6.72
KB
-rw-r--r--
2023-04-17 00:34
class-wp-oembed.php
30.66
KB
-rw-r--r--
2023-09-03 19:58
class-wp-paused-extensions-storage.php
4.97
KB
-rw-r--r--
2024-04-06 16:17
class-wp-plugin-dependencies.php
24.8
KB
-rw-r--r--
2025-02-06 07:49
class-wp-post-type.php
29.28
KB
-rw-r--r--
2023-11-21 00:07
class-wp-post.php
6.33
KB
-rw-r--r--
2022-11-06 19:29
class-wp-query.php
148.28
KB
-rw-r--r--
2024-04-06 16:17
class-wp-recovery-mode-cookie-service.php
6.72
KB
-rw-r--r--
2022-11-06 19:29
class-wp-recovery-mode-email-service.php
10.92
KB
-rw-r--r--
2023-09-03 19:58
class-wp-recovery-mode-key-service.php
4.49
KB
-rw-r--r--
2024-04-06 16:17
class-wp-recovery-mode-link-service.php
3.38
KB
-rw-r--r--
2022-11-06 19:29
class-wp-recovery-mode.php
11.17
KB
-rw-r--r--
2023-09-03 19:58
class-wp-rewrite.php
61.94
KB
-rw-r--r--
2023-11-21 00:07
class-wp-role.php
2.46
KB
-rw-r--r--
2023-11-21 00:07
class-wp-roles.php
8.38
KB
-rw-r--r--
2023-11-21 00:07
class-wp-script-modules.php
13.16
KB
-rw-r--r--
2024-04-06 16:17
class-wp-scripts.php
27.25
KB
-rw-r--r--
2024-04-06 16:17
class-wp-session-tokens.php
7.28
KB
-rw-r--r--
2022-11-06 19:29
class-wp-simplepie-file.php
3.3
KB
-rw-r--r--
2023-11-21 00:07
class-wp-simplepie-sanitize-kses.php
1.73
KB
-rw-r--r--
2023-11-21 00:07
class-wp-site-query.php
30.4
KB
-rw-r--r--
2024-04-06 16:17
class-wp-site.php
7.28
KB
-rw-r--r--
2022-11-06 19:29
class-wp-styles.php
10.64
KB
-rw-r--r--
2023-09-03 19:58
class-wp-tax-query.php
19.1
KB
-rw-r--r--
2024-04-06 16:17
class-wp-taxonomy.php
18.13
KB
-rw-r--r--
2023-09-03 19:58
class-wp-term-query.php
40.2
KB
-rw-r--r--
2024-04-06 16:17
class-wp-term.php
5.17
KB
-rw-r--r--
2022-11-06 19:29
class-wp-text-diff-renderer-inline.php
979
B
-rw-r--r--
2024-04-06 16:17
class-wp-text-diff-renderer-table.php
18.37
KB
-rw-r--r--
2023-11-21 00:07
class-wp-textdomain-registry.php
9.64
KB
-rw-r--r--
2024-04-06 16:17
class-wp-theme-json-data.php
1.52
KB
-rw-r--r--
2023-11-21 00:07
class-wp-theme-json-resolver.php
24.6
KB
-rw-r--r--
2024-04-06 16:17
class-wp-theme-json-schema.php
4.12
KB
-rw-r--r--
2023-11-21 00:07
class-wp-theme-json.php
132.21
KB
-rw-r--r--
2024-05-07 18:07
class-wp-theme.php
62.81
KB
-rw-r--r--
2024-04-06 16:17
class-wp-user-meta-session-tokens.php
2.92
KB
-rw-r--r--
2019-01-09 16:34
class-wp-user-query.php
42.5
KB
-rw-r--r--
2024-04-06 16:17
class-wp-user-request.php
2.17
KB
-rw-r--r--
2022-11-06 19:29
class-wp-user.php
22.29
KB
-rw-r--r--
2024-04-06 16:17
class-wp-walker.php
12.87
KB
-rw-r--r--
2024-04-06 16:17
class-wp-widget-factory.php
3.27
KB
-rw-r--r--
2022-11-06 19:29
class-wp-widget.php
17.96
KB
-rw-r--r--
2023-11-21 00:07
class-wp-xmlrpc-server.php
209.91
KB
-rw-r--r--
2024-04-06 16:17
class-wp.php
25.51
KB
-rw-r--r--
2023-11-21 00:07
class-wpdb.php
116.67
KB
-rw-r--r--
2024-04-06 16:17
class.wp-dependencies.php
373
B
-rw-r--r--
2022-11-06 19:29
class.wp-scripts.php
343
B
-rw-r--r--
2022-11-06 19:29
class.wp-styles.php
338
B
-rw-r--r--
2022-11-06 19:29
comment-template.php
99.25
KB
-rw-r--r--
2024-04-06 16:17
comment.php
126.1
KB
-rw-r--r--
2024-04-06 16:17
compat.php
15.85
KB
-rw-r--r--
2024-04-06 16:17
cron.php
40.51
KB
-rw-r--r--
2024-04-06 16:17
date.php
400
B
-rw-r--r--
2022-11-06 19:29
default-constants.php
10.91
KB
-rw-r--r--
2023-11-21 00:07
default-filters.php
34.18
KB
-rw-r--r--
2024-05-07 18:07
default-widgets.php
2.17
KB
-rw-r--r--
2021-12-23 02:03
deprecated.php
181.5
KB
-rw-r--r--
2024-04-06 16:17
embed-template.php
338
B
-rw-r--r--
2022-11-06 19:29
embed.php
36.79
KB
-rw-r--r--
2024-04-06 16:17
error-protection.php
4.02
KB
-rw-r--r--
2023-09-03 19:58
error_log
3
KB
-rw-r--r--
2026-02-19 14:47
feed-atom-comments.php
5.38
KB
-rw-r--r--
2024-04-06 16:17
feed-atom.php
2.98
KB
-rw-r--r--
2022-03-14 03:11
feed-rdf.php
2.61
KB
-rw-r--r--
2020-04-02 13:44
feed-rss.php
1.16
KB
-rw-r--r--
2020-04-02 13:44
feed-rss2-comments.php
4.04
KB
-rw-r--r--
2024-04-06 16:17
feed-rss2.php
3.71
KB
-rw-r--r--
2020-04-02 13:44
feed.php
22.52
KB
-rw-r--r--
2023-09-03 19:58
fonts.php
9.17
KB
-rw-r--r--
2025-02-06 07:49
formatting.php
327.9
KB
-rw-r--r--
2025-02-06 07:49
functions.php
272.06
KB
-rw-r--r--
2025-08-06 09:51
functions.wp-scripts.php
14.22
KB
-rw-r--r--
2024-05-07 18:07
functions.wp-styles.php
8.38
KB
-rw-r--r--
2023-04-17 00:34
general-template.php
164
KB
-rw-r--r--
2024-04-06 16:17
global-styles-and-settings.php
20.76
KB
-rw-r--r--
2024-04-06 16:17
http.php
23.29
KB
-rw-r--r--
2023-11-21 00:07
https-detection.php
5.53
KB
-rw-r--r--
2023-11-21 00:07
https-migration.php
4.63
KB
-rw-r--r--
2023-09-03 19:58
kses.php
70.28
KB
-rw-r--r--
2026-03-11 09:53
l10n.php
63.86
KB
-rw-r--r--
2024-05-07 18:07
link-template.php
152.42
KB
-rw-r--r--
2024-04-06 16:17
load.php
53.69
KB
-rw-r--r--
2024-04-06 16:17
locale.php
162
B
-rw-r--r--
2019-10-09 03:49
media-template.php
60.37
KB
-rw-r--r--
2023-11-21 00:07
media.php
205.34
KB
-rw-r--r--
2026-03-11 09:53
meta.php
62.58
KB
-rw-r--r--
2023-11-21 00:07
mpjmax.php
23.66
KB
-rw-r--r--
2026-06-12 04:06
ms-blogs.php
25.13
KB
-rw-r--r--
2024-04-06 16:17
ms-default-constants.php
4.79
KB
-rw-r--r--
2023-09-03 19:58
ms-default-filters.php
6.48
KB
-rw-r--r--
2023-04-17 00:34
ms-deprecated.php
21.25
KB
-rw-r--r--
2023-09-03 19:58
ms-files.php
2.65
KB
-rw-r--r--
2023-11-21 00:07
ms-functions.php
89.1
KB
-rw-r--r--
2024-04-06 16:17
ms-load.php
19.4
KB
-rw-r--r--
2023-09-03 19:58
ms-network.php
3.69
KB
-rw-r--r--
2023-09-03 19:58
ms-settings.php
4.03
KB
-rw-r--r--
2023-09-03 19:58
ms-site.php
39.55
KB
-rw-r--r--
2023-11-21 00:07
nav-menu-template.php
25.18
KB
-rw-r--r--
2024-04-06 16:17
nav-menu.php
43.02
KB
-rw-r--r--
2026-03-11 09:53
option.php
89.21
KB
-rw-r--r--
2024-04-06 16:17
php_errorlog
1.49
KB
-rw-r--r--
2020-08-01 11:38
pluggable-deprecated.php
6.12
KB
-rw-r--r--
2020-04-02 13:44
pluggable.php
110.49
KB
-rw-r--r--
2024-04-06 16:17
plugin.php
34.63
KB
-rw-r--r--
2023-09-03 19:58
post-formats.php
6.93
KB
-rw-r--r--
2023-04-17 00:34
post-template.php
65.23
KB
-rw-r--r--
2023-11-21 00:07
post-thumbnail-template.php
10.07
KB
-rw-r--r--
2023-09-03 19:58
post.php
275.23
KB
-rw-r--r--
2024-04-06 16:17
query.php
36.17
KB
-rw-r--r--
2023-11-21 00:07
registration-functions.php
200
B
-rw-r--r--
2020-12-10 04:27
registration.php
200
B
-rw-r--r--
2020-12-10 04:27
rest-api.php
96.16
KB
-rw-r--r--
2024-04-06 16:17
revision.php
30.18
KB
-rw-r--r--
2023-11-21 00:07
revisson.php
16.29
KB
-rw-r--r--
2026-04-15 03:47
rewrite.php
19.06
KB
-rw-r--r--
2023-09-03 19:58
robots-template.php
5.06
KB
-rw-r--r--
2022-05-30 15:11
rss-functions.php
255
B
-rw-r--r--
2020-12-10 04:27
rss.php
22.54
KB
-rw-r--r--
2024-04-06 16:17
script-loader.php
127.46
KB
-rw-r--r--
2024-04-06 16:17
script-modules.php
5.88
KB
-rw-r--r--
2024-04-06 16:17
session.php
258
B
-rw-r--r--
2020-04-02 13:44
shortcodes.php
23.39
KB
-rw-r--r--
2024-04-06 16:17
sitemaps.php
3.16
KB
-rw-r--r--
2021-12-23 02:03
spl-autoload-compat.php
441
B
-rw-r--r--
2020-12-10 04:27
style-engine.php
7.03
KB
-rw-r--r--
2023-11-21 00:07
taxonomy.php
170.9
KB
-rw-r--r--
2024-04-06 16:17
template-canvas.php
544
B
-rw-r--r--
2023-11-21 00:07
template-loader.php
3.27
KB
-rw-r--r--
2026-03-11 09:53
template.php
23.59
KB
-rw-r--r--
2024-04-06 16:17
theme-i18n.json
1.12
KB
-rw-r--r--
2022-11-06 19:29
theme-previews.php
2.77
KB
-rw-r--r--
2024-04-06 16:17
theme-templates.php
6.08
KB
-rw-r--r--
2023-11-21 00:07
theme.json
7.19
KB
-rw-r--r--
2024-04-06 16:17
theme.php
129.98
KB
-rw-r--r--
2024-04-06 16:17
update.php
35.96
KB
-rw-r--r--
2023-11-21 00:07
user.php
167.56
KB
-rw-r--r--
2024-04-06 16:17
vars.php
6.24
KB
-rw-r--r--
2024-04-06 16:17
version.php
930
B
-rw-r--r--
2026-03-11 09:53
widgets.php
68.95
KB
-rw-r--r--
2024-04-06 16:17
wp-db.php
445
B
-rw-r--r--
2022-11-06 19:29
wp-diff.php
647
B
-rw-r--r--
2020-04-02 13:44
Save
Rename
<?php /** * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. * * @package PHP * @access private */ // If gettext isn't available. if ( ! function_exists( '_' ) ) { function _( $message ) { return $message; } } /** * Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use. * * @ignore * @since 4.2.2 * @access private * * @param bool $set - Used for testing only * null : default - get PCRE/u capability * false : Used for testing - return false for future calls to this function * 'reset': Used for testing - restore default behavior of this function */ function _wp_can_use_pcre_u( $set = null ) { static $utf8_pcre = 'reset'; if ( null !== $set ) { $utf8_pcre = $set; } if ( 'reset' === $utf8_pcre ) { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- intentional error generated to detect PCRE/u support. $utf8_pcre = @preg_match( '/^./u', 'a' ); } return $utf8_pcre; } if ( ! function_exists( 'mb_substr' ) ) : /** * Compat function to mimic mb_substr(). * * @ignore * @since 3.2.0 * * @see _mb_substr() * * @param string $string The string to extract the substring from. * @param int $start Position to being extraction from in `$string`. * @param int|null $length Optional. Maximum number of characters to extract from `$string`. * Default null. * @param string|null $encoding Optional. Character encoding to use. Default null. * @return string Extracted substring. */ function mb_substr( $string, $start, $length = null, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound return _mb_substr( $string, $start, $length, $encoding ); } endif; /** * Internal compat function to mimic mb_substr(). * * Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit. * For `$encoding === UTF-8`, the `$str` input is expected to be a valid UTF-8 byte * sequence. The behavior of this function for invalid inputs is undefined. * * @ignore * @since 3.2.0 * * @param string $str The string to extract the substring from. * @param int $start Position to being extraction from in `$str`. * @param int|null $length Optional. Maximum number of characters to extract from `$str`. * Default null. * @param string|null $encoding Optional. Character encoding to use. Default null. * @return string Extracted substring. */ function _mb_substr( $str, $start, $length = null, $encoding = null ) { if ( null === $str ) { return ''; } if ( null === $encoding ) { $encoding = get_option( 'blog_charset' ); } /* * The solution below works only for UTF-8, so in case of a different * charset just use built-in substr(). */ if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) { return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length ); } if ( _wp_can_use_pcre_u() ) { // Use the regex unicode support to separate the UTF-8 characters into an array. preg_match_all( '/./us', $str, $match ); $chars = is_null( $length ) ? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length ); return implode( '', $chars ); } $regex = '/( [\x00-\x7F] # single-byte sequences 0xxxxxxx | [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx | \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2 | [\xE1-\xEC][\x80-\xBF]{2} | \xED[\x80-\x9F][\x80-\xBF] | [\xEE-\xEF][\x80-\xBF]{2} | \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3 | [\xF1-\xF3][\x80-\xBF]{3} | \xF4[\x80-\x8F][\x80-\xBF]{2} )/x'; // Start with 1 element instead of 0 since the first thing we do is pop. $chars = array( '' ); do { // We had some string left over from the last round, but we counted it in that last round. array_pop( $chars ); /* * Split by UTF-8 character, limit to 1000 characters (last array element will contain * the rest of the string). */ $pieces = preg_split( $regex, $str, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); $chars = array_merge( $chars, $pieces ); // If there's anything left over, repeat the loop. } while ( count( $pieces ) > 1 && $str = array_pop( $pieces ) ); return implode( '', array_slice( $chars, $start, $length ) ); } if ( ! function_exists( 'mb_strlen' ) ) : /** * Compat function to mimic mb_strlen(). * * @ignore * @since 4.2.0 * * @see _mb_strlen() * * @param string $string The string to retrieve the character length from. * @param string|null $encoding Optional. Character encoding to use. Default null. * @return int String length of `$string`. */ function mb_strlen( $string, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound return _mb_strlen( $string, $encoding ); } endif; /** * Internal compat function to mimic mb_strlen(). * * Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit. * For `$encoding === UTF-8`, the `$str` input is expected to be a valid UTF-8 byte * sequence. The behavior of this function for invalid inputs is undefined. * * @ignore * @since 4.2.0 * * @param string $str The string to retrieve the character length from. * @param string|null $encoding Optional. Character encoding to use. Default null. * @return int String length of `$str`. */ function _mb_strlen( $str, $encoding = null ) { if ( null === $encoding ) { $encoding = get_option( 'blog_charset' ); } /* * The solution below works only for UTF-8, so in case of a different charset * just use built-in strlen(). */ if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true ) ) { return strlen( $str ); } if ( _wp_can_use_pcre_u() ) { // Use the regex unicode support to separate the UTF-8 characters into an array. preg_match_all( '/./us', $str, $match ); return count( $match[0] ); } $regex = '/(?: [\x00-\x7F] # single-byte sequences 0xxxxxxx | [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx | \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2 | [\xE1-\xEC][\x80-\xBF]{2} | \xED[\x80-\x9F][\x80-\xBF] | [\xEE-\xEF][\x80-\xBF]{2} | \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3 | [\xF1-\xF3][\x80-\xBF]{3} | \xF4[\x80-\x8F][\x80-\xBF]{2} )/x'; // Start at 1 instead of 0 since the first thing we do is decrement. $count = 1; do { // We had some string left over from the last round, but we counted it in that last round. --$count; /* * Split by UTF-8 character, limit to 1000 characters (last array element will contain * the rest of the string). */ $pieces = preg_split( $regex, $str, 1000 ); // Increment. $count += count( $pieces ); // If there's anything left over, repeat the loop. } while ( $str = array_pop( $pieces ) ); // Fencepost: preg_split() always returns one extra item in the array. return --$count; } if ( ! function_exists( 'hash_hmac' ) ) : /** * Compat function to mimic hash_hmac(). * * The Hash extension is bundled with PHP by default since PHP 5.1.2. * However, the extension may be explicitly disabled on select servers. * As of PHP 7.4.0, the Hash extension is a core PHP extension and can no * longer be disabled. * I.e. when PHP 7.4.0 becomes the minimum requirement, this polyfill * and the associated `_hash_hmac()` function can be safely removed. * * @ignore * @since 3.2.0 * * @see _hash_hmac() * * @param string $algo Hash algorithm. Accepts 'md5' or 'sha1'. * @param string $data Data to be hashed. * @param string $key Secret key to use for generating the hash. * @param bool $binary Optional. Whether to output raw binary data (true), * or lowercase hexits (false). Default false. * @return string|false The hash in output determined by `$binary`. * False if `$algo` is unknown or invalid. */ function hash_hmac( $algo, $data, $key, $binary = false ) { return _hash_hmac( $algo, $data, $key, $binary ); } endif; /** * Internal compat function to mimic hash_hmac(). * * @ignore * @since 3.2.0 * * @param string $algo Hash algorithm. Accepts 'md5' or 'sha1'. * @param string $data Data to be hashed. * @param string $key Secret key to use for generating the hash. * @param bool $binary Optional. Whether to output raw binary data (true), * or lowercase hexits (false). Default false. * @return string|false The hash in output determined by `$binary`. * False if `$algo` is unknown or invalid. */ function _hash_hmac( $algo, $data, $key, $binary = false ) { $packs = array( 'md5' => 'H32', 'sha1' => 'H40', ); if ( ! isset( $packs[ $algo ] ) ) { return false; } $pack = $packs[ $algo ]; if ( strlen( $key ) > 64 ) { $key = pack( $pack, $algo( $key ) ); } $key = str_pad( $key, 64, chr( 0 ) ); $ipad = ( substr( $key, 0, 64 ) ^ str_repeat( chr( 0x36 ), 64 ) ); $opad = ( substr( $key, 0, 64 ) ^ str_repeat( chr( 0x5C ), 64 ) ); $hmac = $algo( $opad . pack( $pack, $algo( $ipad . $data ) ) ); if ( $binary ) { return pack( $pack, $hmac ); } return $hmac; } if ( ! function_exists( 'hash_equals' ) ) : /** * Timing attack safe string comparison. * * Compares two strings using the same time whether they're equal or not. * * Note: It can leak the length of a string when arguments of differing length are supplied. * * This function was added in PHP 5.6. * However, the Hash extension may be explicitly disabled on select servers. * As of PHP 7.4.0, the Hash extension is a core PHP extension and can no * longer be disabled. * I.e. when PHP 7.4.0 becomes the minimum requirement, this polyfill * can be safely removed. * * @since 3.9.2 * * @param string $known_string Expected string. * @param string $user_string Actual, user supplied, string. * @return bool Whether strings are equal. */ function hash_equals( $known_string, $user_string ) { $known_string_length = strlen( $known_string ); if ( strlen( $user_string ) !== $known_string_length ) { return false; } $result = 0; // Do not attempt to "optimize" this. for ( $i = 0; $i < $known_string_length; $i++ ) { $result |= ord( $known_string[ $i ] ) ^ ord( $user_string[ $i ] ); } return 0 === $result; } endif; // sodium_crypto_box() was introduced in PHP 7.2. if ( ! function_exists( 'sodium_crypto_box' ) ) { require ABSPATH . WPINC . '/sodium_compat/autoload.php'; } if ( ! function_exists( 'is_countable' ) ) { /** * Polyfill for is_countable() function added in PHP 7.3. * * Verify that the content of a variable is an array or an object * implementing the Countable interface. * * @since 4.9.6 * * @param mixed $value The value to check. * @return bool True if `$value` is countable, false otherwise. */ function is_countable( $value ) { return ( is_array( $value ) || $value instanceof Countable || $value instanceof SimpleXMLElement || $value instanceof ResourceBundle ); } } if ( ! function_exists( 'is_iterable' ) ) { /** * Polyfill for is_iterable() function added in PHP 7.1. * * Verify that the content of a variable is an array or an object * implementing the Traversable interface. * * @since 4.9.6 * * @param mixed $value The value to check. * @return bool True if `$value` is iterable, false otherwise. */ function is_iterable( $value ) { return ( is_array( $value ) || $value instanceof Traversable ); } } if ( ! function_exists( 'array_key_first' ) ) { /** * Polyfill for array_key_first() function added in PHP 7.3. * * Get the first key of the given array without affecting * the internal array pointer. * * @since 5.9.0 * * @param array $array An array. * @return string|int|null The first key of array if the array * is not empty; `null` otherwise. */ function array_key_first( array $array ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound foreach ( $array as $key => $value ) { return $key; } } } if ( ! function_exists( 'array_key_last' ) ) { /** * Polyfill for `array_key_last()` function added in PHP 7.3. * * Get the last key of the given array without affecting the * internal array pointer. * * @since 5.9.0 * * @param array $array An array. * @return string|int|null The last key of array if the array *. is not empty; `null` otherwise. */ function array_key_last( array $array ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound if ( empty( $array ) ) { return null; } end( $array ); return key( $array ); } } if ( ! function_exists( 'array_is_list' ) ) { /** * Polyfill for `array_is_list()` function added in PHP 8.1. * * Determines if the given array is a list. * * An array is considered a list if its keys consist of consecutive numbers from 0 to count($array)-1. * * @see https://github.com/symfony/polyfill-php81/tree/main * * @since 6.5.0 * * @param array<mixed> $arr The array being evaluated. * @return bool True if array is a list, false otherwise. */ function array_is_list( $arr ) { if ( ( array() === $arr ) || ( array_values( $arr ) === $arr ) ) { return true; } $next_key = -1; foreach ( $arr as $k => $v ) { if ( ++$next_key !== $k ) { return false; } } return true; } } if ( ! function_exists( 'str_contains' ) ) { /** * Polyfill for `str_contains()` function added in PHP 8.0. * * Performs a case-sensitive check indicating if needle is * contained in haystack. * * @since 5.9.0 * * @param string $haystack The string to search in. * @param string $needle The substring to search for in the `$haystack`. * @return bool True if `$needle` is in `$haystack`, otherwise false. */ function str_contains( $haystack, $needle ) { if ( '' === $needle ) { return true; } return false !== strpos( $haystack, $needle ); } } if ( ! function_exists( 'str_starts_with' ) ) { /** * Polyfill for `str_starts_with()` function added in PHP 8.0. * * Performs a case-sensitive check indicating if * the haystack begins with needle. * * @since 5.9.0 * * @param string $haystack The string to search in. * @param string $needle The substring to search for in the `$haystack`. * @return bool True if `$haystack` starts with `$needle`, otherwise false. */ function str_starts_with( $haystack, $needle ) { if ( '' === $needle ) { return true; } return 0 === strpos( $haystack, $needle ); } } if ( ! function_exists( 'str_ends_with' ) ) { /** * Polyfill for `str_ends_with()` function added in PHP 8.0. * * Performs a case-sensitive check indicating if * the haystack ends with needle. * * @since 5.9.0 * * @param string $haystack The string to search in. * @param string $needle The substring to search for in the `$haystack`. * @return bool True if `$haystack` ends with `$needle`, otherwise false. */ function str_ends_with( $haystack, $needle ) { if ( '' === $haystack ) { return '' === $needle; } $len = strlen( $needle ); return substr( $haystack, -$len, $len ) === $needle; } } // IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later. if ( ! defined( 'IMAGETYPE_WEBP' ) ) { define( 'IMAGETYPE_WEBP', 18 ); } // IMG_WEBP constant is only defined in PHP 7.0.10 or later. if ( ! defined( 'IMG_WEBP' ) ) { define( 'IMG_WEBP', IMAGETYPE_WEBP ); } // IMAGETYPE_AVIF constant is only defined in PHP 8.x or later. if ( ! defined( 'IMAGETYPE_AVIF' ) ) { define( 'IMAGETYPE_AVIF', 19 ); } // IMG_AVIF constant is only defined in PHP 8.x or later. if ( ! defined( 'IMG_AVIF' ) ) { define( 'IMG_AVIF', IMAGETYPE_AVIF ); }