Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
Microsoft-IIS/10.0
Server IP : & Your IP : 3.17.73.197
Domains :
Cant Read [ /etc/named.conf ]
User : elibrary.unsap.ac.id
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
D: /
localhost /
agreindra /
wp-includes /
Delete
Unzip
Name
Size
Permission
Date
Action
ID3
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
IXR
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
PHPMailer
[ DIR ]
drwxrwxrwx
2024-07-15 18:49
Requests
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
SimplePie
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
Text
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
assets
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
block-patterns
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
block-supports
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
blocks
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
certificates
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
css
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
customize
[ DIR ]
drwxrwxrwx
2024-07-15 18:51
fonts
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
html-api
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
images
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
js
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
php-compat
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
pomo
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
rest-api
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
sitemaps
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
sodium_compat
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
style-engine
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
theme-compat
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
widgets
[ DIR ]
drwxrwxrwx
2024-03-18 16:41
admin-bar.php
35.15
KB
-rw-rw-rw-
2023-09-26 23:29
atomlib.php
11.67
KB
-rw-rw-rw-
2022-04-21 18:24
author-template.php
18.51
KB
-rw-rw-rw-
2023-05-15 00:58
block-editor.php
27.27
KB
-rw-rw-rw-
2023-09-28 00:40
block-i18n.json
316
B
-rw-rw-rw-
2021-08-11 16:08
block-patterns.php
12.64
KB
-rw-rw-rw-
2023-11-10 23:00
block-template-utils.php
47.35
KB
-rw-rw-rw-
2023-11-17 14:17
block-template.php
12
KB
-rw-rw-rw-
2023-10-28 01:36
blocks.php
69.78
KB
-rw-rw-rw-
2023-11-06 22:29
bookmark-template.php
12.61
KB
-rw-rw-rw-
2023-06-22 21:57
bookmark.php
15.02
KB
-rw-rw-rw-
2023-07-10 03:17
cache-compat.php
5.83
KB
-rw-rw-rw-
2022-10-11 01:22
cache.php
13.16
KB
-rw-rw-rw-
2022-10-11 01:22
canonical.php
33.27
KB
-rw-rw-rw-
2024-01-26 02:43
capabilities.php
39.09
KB
-rw-rw-rw-
2023-07-10 03:17
category-template.php
55.67
KB
-rw-rw-rw-
2023-09-26 07:27
category.php
12.41
KB
-rw-rw-rw-
2023-08-24 16:01
class-IXR.php
2.48
KB
-rw-rw-rw-
2020-02-06 13:33
class-feed.php
529
B
-rw-rw-rw-
2020-02-06 13:33
class-http.php
367
B
-rw-rw-rw-
2022-06-17 18:20
class-json.php
42.66
KB
-rw-rw-rw-
2023-02-03 20:35
class-oembed.php
401
B
-rw-rw-rw-
2022-06-17 18:20
class-phpass.php
6.55
KB
-rw-rw-rw-
2023-02-13 16:08
class-phpmailer.php
664
B
-rw-rw-rw-
2020-07-21 19:58
class-pop3.php
20.48
KB
-rw-rw-rw-
2023-02-11 19:43
class-requests.php
2.18
KB
-rw-rw-rw-
2023-04-05 20:12
class-simplepie.php
95.82
KB
-rw-rw-rw-
2023-05-13 04:35
class-smtp.php
457
B
-rw-rw-rw-
2021-01-26 20:45
class-snoopy.php
36.83
KB
-rw-rw-rw-
2023-02-03 20:35
class-walker-category-dropdown.php
2.41
KB
-rw-rw-rw-
2023-09-14 19:46
class-walker-category.php
8.28
KB
-rw-rw-rw-
2023-09-08 16:32
class-walker-comment.php
13.88
KB
-rw-rw-rw-
2023-09-09 16:28
class-walker-nav-menu.php
11.05
KB
-rw-rw-rw-
2023-06-27 22:26
class-walker-page-dropdown.php
2.65
KB
-rw-rw-rw-
2023-09-14 19:46
class-walker-page.php
7.43
KB
-rw-rw-rw-
2023-09-14 19:46
class-wp-admin-bar.php
16.96
KB
-rw-rw-rw-
2023-07-10 03:17
class-wp-ajax-response.php
5.14
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-application-passwords.php
12.55
KB
-rw-rw-rw-
2023-05-09 05:37
class-wp-block-editor-context.php
1.32
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-block-list.php
4.66
KB
-rw-rw-rw-
2023-10-09 18:23
class-wp-block-parser-block.php
2.5
KB
-rw-rw-rw-
2023-06-27 07:45
class-wp-block-parser-frame.php
1.87
KB
-rw-rw-rw-
2023-06-27 07:45
class-wp-block-parser.php
11.26
KB
-rw-rw-rw-
2023-10-17 02:17
class-wp-block-pattern-categories-registry.php
5.25
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-block-patterns-registry.php
9.84
KB
-rw-rw-rw-
2023-10-17 22:48
class-wp-block-styles-registry.php
5.75
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-block-supports.php
5.39
KB
-rw-rw-rw-
2023-09-29 17:20
class-wp-block-template.php
1.91
KB
-rw-rw-rw-
2023-06-23 13:29
class-wp-block-type-registry.php
4.9
KB
-rw-rw-rw-
2023-10-12 19:34
class-wp-block-type.php
14.4
KB
-rw-rw-rw-
2023-09-14 20:25
class-wp-block.php
8.2
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-classic-to-block-menu-converter.php
3.99
KB
-rw-rw-rw-
2023-08-22 00:51
class-wp-comment-query.php
46.71
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-comment.php
9.15
KB
-rw-rw-rw-
2023-08-24 15:44
class-wp-customize-control.php
25.24
KB
-rw-rw-rw-
2023-09-08 16:32
class-wp-customize-manager.php
197.52
KB
-rw-rw-rw-
2023-09-30 04:39
class-wp-customize-nav-menus.php
55.97
KB
-rw-rw-rw-
2023-09-26 04:05
class-wp-customize-panel.php
10.42
KB
-rw-rw-rw-
2023-09-10 16:04
class-wp-customize-section.php
10.98
KB
-rw-rw-rw-
2023-09-10 16:04
class-wp-customize-setting.php
29.19
KB
-rw-rw-rw-
2023-09-10 16:04
class-wp-customize-widgets.php
69.93
KB
-rw-rw-rw-
2023-09-26 04:05
class-wp-date-query.php
34.88
KB
-rw-rw-rw-
2023-06-22 21:36
class-wp-dependencies.php
13.73
KB
-rw-rw-rw-
2023-09-08 16:32
class-wp-dependency.php
2.57
KB
-rw-rw-rw-
2022-11-25 22:12
class-wp-duotone.php
38.52
KB
-rw-rw-rw-
2023-10-24 18:08
class-wp-editor.php
70.39
KB
-rw-rw-rw-
2023-07-15 03:59
class-wp-embed.php
15.62
KB
-rw-rw-rw-
2023-07-10 03:17
class-wp-error.php
7.33
KB
-rw-rw-rw-
2023-02-21 23:39
class-wp-fatal-error-handler.php
7.69
KB
-rw-rw-rw-
2023-02-23 17:38
class-wp-feed-cache-transient.php
2.53
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-feed-cache.php
969
B
-rw-rw-rw-
2023-08-10 08:06
class-wp-hook.php
15.63
KB
-rw-rw-rw-
2023-09-18 19:41
class-wp-http-cookie.php
7.22
KB
-rw-rw-rw-
2023-06-25 00:17
class-wp-http-curl.php
12.25
KB
-rw-rw-rw-
2023-09-22 01:29
class-wp-http-encoding.php
6.53
KB
-rw-rw-rw-
2023-06-22 21:57
class-wp-http-ixr-client.php
3.42
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-http-proxy.php
5.84
KB
-rw-rw-rw-
2023-06-22 21:36
class-wp-http-requests-hooks.php
1.97
KB
-rw-rw-rw-
2022-12-16 04:32
class-wp-http-requests-response.php
4.3
KB
-rw-rw-rw-
2023-10-11 14:05
class-wp-http-response.php
2.91
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-http-streams.php
16.46
KB
-rw-rw-rw-
2023-09-22 01:29
class-wp-http.php
39.63
KB
-rw-rw-rw-
2023-09-26 23:55
class-wp-image-editor-gd.php
17.11
KB
-rw-rw-rw-
2023-08-19 07:10
class-wp-image-editor-imagick.php
30.47
KB
-rw-rw-rw-
2023-09-08 16:32
class-wp-image-editor.php
17.17
KB
-rw-rw-rw-
2023-09-07 21:59
class-wp-list-util.php
7.27
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-locale-switcher.php
6.41
KB
-rw-rw-rw-
2023-07-10 04:25
class-wp-locale.php
15.74
KB
-rw-rw-rw-
2023-07-10 04:25
class-wp-matchesmapregex.php
1.78
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-meta-query.php
29.82
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-metadata-lazyloader.php
6.67
KB
-rw-rw-rw-
2023-05-11 18:15
class-wp-navigation-fallback.php
9
KB
-rw-rw-rw-
2023-10-06 21:06
class-wp-network-query.php
18.84
KB
-rw-rw-rw-
2023-03-10 23:30
class-wp-network.php
11.9
KB
-rw-rw-rw-
2023-07-12 16:46
class-wp-object-cache.php
17.18
KB
-rw-rw-rw-
2023-03-14 23:55
class-wp-oembed-controller.php
6.72
KB
-rw-rw-rw-
2022-11-13 20:51
class-wp-oembed.php
30.66
KB
-rw-rw-rw-
2023-07-10 04:25
class-wp-paused-extensions-storage.php
4.94
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-post-type.php
29.28
KB
-rw-rw-rw-
2023-10-10 21:05
class-wp-post.php
6.33
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-query.php
148.03
KB
-rw-rw-rw-
2023-10-13 06:41
class-wp-recovery-mode-cookie-service.php
6.72
KB
-rw-rw-rw-
2022-10-04 10:59
class-wp-recovery-mode-email-service.php
10.92
KB
-rw-rw-rw-
2023-05-02 22:45
class-wp-recovery-mode-key-service.php
4.4
KB
-rw-rw-rw-
2023-02-21 22:59
class-wp-recovery-mode-link-service.php
3.38
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-recovery-mode.php
11.17
KB
-rw-rw-rw-
2023-05-02 22:45
class-wp-rewrite.php
61.94
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-role.php
2.46
KB
-rw-rw-rw-
2023-09-08 16:32
class-wp-roles.php
8.38
KB
-rw-rw-rw-
2023-07-28 18:37
class-wp-scripts.php
27.99
KB
-rw-rw-rw-
2023-10-14 01:46
class-wp-session-tokens.php
7.28
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-simplepie-file.php
3.3
KB
-rw-rw-rw-
2023-08-10 08:06
class-wp-simplepie-sanitize-kses.php
1.73
KB
-rw-rw-rw-
2023-08-10 08:06
class-wp-site-query.php
30.29
KB
-rw-rw-rw-
2023-06-22 21:36
class-wp-site.php
7.28
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-styles.php
10.64
KB
-rw-rw-rw-
2023-05-02 22:45
class-wp-tax-query.php
19.09
KB
-rw-rw-rw-
2023-07-08 17:48
class-wp-taxonomy.php
18.13
KB
-rw-rw-rw-
2023-04-28 06:15
class-wp-term-query.php
40.05
KB
-rw-rw-rw-
2023-11-01 22:15
class-wp-term.php
5.17
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-text-diff-renderer-inline.php
829
B
-rw-rw-rw-
2023-09-08 16:32
class-wp-text-diff-renderer-table.php
18.37
KB
-rw-rw-rw-
2023-10-15 21:55
class-wp-textdomain-registry.php
5.84
KB
-rw-rw-rw-
2023-07-10 04:25
class-wp-theme-json-data.php
1.52
KB
-rw-rw-rw-
2023-09-08 16:32
class-wp-theme-json-resolver.php
24.06
KB
-rw-rw-rw-
2023-09-26 20:47
class-wp-theme-json-schema.php
4.12
KB
-rw-rw-rw-
2023-10-02 18:27
class-wp-theme-json.php
126.52
KB
-rw-rw-rw-
2023-10-10 10:43
class-wp-theme.php
62.76
KB
-rw-rw-rw-
2023-10-21 02:36
class-wp-user-meta-session-tokens.php
2.92
KB
-rw-rw-rw-
2019-01-09 12:04
class-wp-user-query.php
42.37
KB
-rw-rw-rw-
2023-09-08 03:45
class-wp-user-request.php
2.17
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-user.php
22.23
KB
-rw-rw-rw-
2023-07-10 19:53
class-wp-walker.php
12.86
KB
-rw-rw-rw-
2023-09-09 16:28
class-wp-widget-factory.php
3.27
KB
-rw-rw-rw-
2022-09-12 22:47
class-wp-widget.php
17.96
KB
-rw-rw-rw-
2023-08-25 08:28
class-wp-xmlrpc-server.php
209.12
KB
-rw-rw-rw-
2023-09-21 02:31
class-wp.php
25.51
KB
-rw-rw-rw-
2023-08-13 17:31
class-wpdb.php
116.66
KB
-rw-rw-rw-
2023-11-09 03:38
class.wp-dependencies.php
373
B
-rw-rw-rw-
2022-09-20 21:17
class.wp-scripts.php
343
B
-rw-rw-rw-
2022-09-20 21:17
class.wp-styles.php
338
B
-rw-rw-rw-
2022-09-20 21:17
comment-template.php
99.05
KB
-rw-rw-rw-
2023-09-26 04:05
comment.php
126.09
KB
-rw-rw-rw-
2023-09-30 00:13
compat.php
14.86
KB
-rw-rw-rw-
2023-09-09 16:28
cron.php
40.5
KB
-rw-rw-rw-
2023-09-11 12:27
date.php
400
B
-rw-rw-rw-
2022-06-17 18:20
default-constants.php
10.91
KB
-rw-rw-rw-
2023-09-27 00:33
default-filters.php
33.7
KB
-rw-rw-rw-
2024-01-25 02:26
default-widgets.php
2.17
KB
-rw-rw-rw-
2021-05-25 15:27
deprecated.php
179.5
KB
-rw-rw-rw-
2023-10-14 00:21
embed-template.php
338
B
-rw-rw-rw-
2022-06-17 18:20
embed.php
36.78
KB
-rw-rw-rw-
2023-09-26 00:06
error-protection.php
4.02
KB
-rw-rw-rw-
2023-05-02 22:45
feed-atom-comments.php
5.32
KB
-rw-rw-rw-
2023-07-29 07:31
feed-atom.php
2.98
KB
-rw-rw-rw-
2021-11-29 16:52
feed-rdf.php
2.61
KB
-rw-rw-rw-
2020-01-29 07:45
feed-rss.php
1.16
KB
-rw-rw-rw-
2020-01-29 07:45
feed-rss2-comments.php
3.98
KB
-rw-rw-rw-
2023-02-13 01:08
feed-rss2.php
3.71
KB
-rw-rw-rw-
2020-01-29 07:45
feed.php
22.52
KB
-rw-rw-rw-
2023-07-10 04:48
fonts.php
2.28
KB
-rw-rw-rw-
2023-09-08 00:30
formatting.php
327.07
KB
-rw-rw-rw-
2023-09-26 07:27
functions.php
269.73
KB
-rw-rw-rw-
2023-11-16 00:47
functions.wp-scripts.php
14.41
KB
-rw-rw-rw-
2023-11-01 22:15
functions.wp-styles.php
8.38
KB
-rw-rw-rw-
2023-01-15 21:57
general-template.php
163.79
KB
-rw-rw-rw-
2023-11-16 00:47
global-styles-and-settings.php
19.73
KB
-rw-rw-rw-
2023-08-25 02:59
http.php
23.29
KB
-rw-rw-rw-
2023-08-03 19:10
https-detection.php
5.53
KB
-rw-rw-rw-
2023-09-23 02:08
https-migration.php
4.63
KB
-rw-rw-rw-
2023-07-11 05:38
kses.php
70.21
KB
-rw-rw-rw-
2023-09-19 19:30
l10n.php
61.31
KB
-rw-rw-rw-
2023-08-19 00:29
link-template.php
152.42
KB
-rw-rw-rw-
2023-10-16 07:07
load.php
52.86
KB
-rw-rw-rw-
2023-10-09 21:49
locale.php
162
B
-rw-rw-rw-
2019-10-09 00:19
media-template.php
60.37
KB
-rw-rw-rw-
2023-09-26 21:45
media.php
202.5
KB
-rw-rw-rw-
2023-10-12 19:47
meta.php
62.58
KB
-rw-rw-rw-
2023-09-26 22:32
ms-blogs.php
25.03
KB
-rw-rw-rw-
2023-12-05 02:59
ms-default-constants.php
4.79
KB
-rw-rw-rw-
2023-07-11 05:48
ms-default-filters.php
6.48
KB
-rw-rw-rw-
2023-02-24 08:23
ms-deprecated.php
21.25
KB
-rw-rw-rw-
2023-06-22 21:57
ms-files.php
2.65
KB
-rw-rw-rw-
2023-08-23 22:53
ms-functions.php
89.12
KB
-rw-rw-rw-
2023-07-11 05:48
ms-load.php
19.4
KB
-rw-rw-rw-
2023-07-11 05:48
ms-network.php
3.69
KB
-rw-rw-rw-
2023-05-02 18:26
ms-settings.php
4.03
KB
-rw-rw-rw-
2023-06-22 21:57
ms-site.php
39.55
KB
-rw-rw-rw-
2023-09-09 16:28
nav-menu-template.php
25.18
KB
-rw-rw-rw-
2023-02-16 07:04
nav-menu.php
43.04
KB
-rw-rw-rw-
2023-07-11 05:48
option.php
89.2
KB
-rw-rw-rw-
2023-10-31 06:23
pluggable-deprecated.php
6.12
KB
-rw-rw-rw-
2020-01-12 01:32
pluggable.php
110.37
KB
-rw-rw-rw-
2023-10-03 23:15
plugin.php
34.63
KB
-rw-rw-rw-
2023-06-08 14:54
post-formats.php
6.93
KB
-rw-rw-rw-
2023-02-21 23:39
post-template.php
65.23
KB
-rw-rw-rw-
2023-08-22 19:30
post-thumbnail-template.php
10.07
KB
-rw-rw-rw-
2023-05-18 01:31
post.php
271.8
KB
-rw-rw-rw-
2023-10-13 06:41
query.php
36.17
KB
-rw-rw-rw-
2023-08-24 16:01
registration-functions.php
200
B
-rw-rw-rw-
2020-11-12 18:17
registration.php
200
B
-rw-rw-rw-
2020-11-12 18:17
rest-api.php
94.87
KB
-rw-rw-rw-
2023-10-12 19:32
revision.php
30.18
KB
-rw-rw-rw-
2023-10-24 02:56
rewrite.php
19.06
KB
-rw-rw-rw-
2023-07-11 18:15
robots-template.php
5.06
KB
-rw-rw-rw-
2022-04-06 22:33
rss-functions.php
255
B
-rw-rw-rw-
2020-11-17 05:52
rss.php
22.48
KB
-rw-rw-rw-
2023-04-11 02:31
script-loader.php
127.03
KB
-rw-rw-rw-
2023-10-03 01:48
session.php
258
B
-rw-rw-rw-
2020-02-06 13:33
shortcodes.php
23.3
KB
-rw-rw-rw-
2023-10-12 19:47
sitemaps.php
3.16
KB
-rw-rw-rw-
2021-05-16 00:38
spl-autoload-compat.php
441
B
-rw-rw-rw-
2020-11-12 18:17
style-engine.php
7.03
KB
-rw-rw-rw-
2023-09-14 11:56
taxonomy.php
169.46
KB
-rw-rw-rw-
2023-11-01 22:05
template-canvas.php
544
B
-rw-rw-rw-
2023-10-01 07:22
template-loader.php
2.94
KB
-rw-rw-rw-
2020-05-26 16:37
template.php
22.97
KB
-rw-rw-rw-
2023-09-21 00:27
theme-i18n.json
1.12
KB
-rw-rw-rw-
2022-09-21 18:43
theme-previews.php
2.76
KB
-rw-rw-rw-
2023-10-03 05:42
theme-templates.php
6.08
KB
-rw-rw-rw-
2023-10-14 00:21
theme.json
7.13
KB
-rw-rw-rw-
2023-09-21 13:35
theme.php
128.13
KB
-rw-rw-rw-
2023-12-05 02:59
update.php
35.96
KB
-rw-rw-rw-
2023-09-12 22:23
user.php
167.14
KB
-rw-rw-rw-
2023-09-14 08:25
vars.php
6.06
KB
-rw-rw-rw-
2023-09-21 03:51
version.php
928
B
-rw-rw-rw-
2024-01-31 02:10
widgets.php
68.24
KB
-rw-rw-rw-
2023-07-11 06:11
wp-db.php
445
B
-rw-rw-rw-
2022-07-22 05:45
wp-diff.php
647
B
-rw-rw-rw-
2020-02-06 13:33
Save
Rename
<?php /** * WordPress Rewrite API * * @package WordPress * @subpackage Rewrite */ /** * Endpoint mask that matches nothing. * * @since 2.1.0 */ define( 'EP_NONE', 0 ); /** * Endpoint mask that matches post permalinks. * * @since 2.1.0 */ define( 'EP_PERMALINK', 1 ); /** * Endpoint mask that matches attachment permalinks. * * @since 2.1.0 */ define( 'EP_ATTACHMENT', 2 ); /** * Endpoint mask that matches any date archives. * * @since 2.1.0 */ define( 'EP_DATE', 4 ); /** * Endpoint mask that matches yearly archives. * * @since 2.1.0 */ define( 'EP_YEAR', 8 ); /** * Endpoint mask that matches monthly archives. * * @since 2.1.0 */ define( 'EP_MONTH', 16 ); /** * Endpoint mask that matches daily archives. * * @since 2.1.0 */ define( 'EP_DAY', 32 ); /** * Endpoint mask that matches the site root. * * @since 2.1.0 */ define( 'EP_ROOT', 64 ); /** * Endpoint mask that matches comment feeds. * * @since 2.1.0 */ define( 'EP_COMMENTS', 128 ); /** * Endpoint mask that matches searches. * * Note that this only matches a search at a "pretty" URL such as * `/search/my-search-term`, not `?s=my-search-term`. * * @since 2.1.0 */ define( 'EP_SEARCH', 256 ); /** * Endpoint mask that matches category archives. * * @since 2.1.0 */ define( 'EP_CATEGORIES', 512 ); /** * Endpoint mask that matches tag archives. * * @since 2.3.0 */ define( 'EP_TAGS', 1024 ); /** * Endpoint mask that matches author archives. * * @since 2.1.0 */ define( 'EP_AUTHORS', 2048 ); /** * Endpoint mask that matches pages. * * @since 2.1.0 */ define( 'EP_PAGES', 4096 ); /** * Endpoint mask that matches all archive views. * * @since 3.7.0 */ define( 'EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS ); /** * Endpoint mask that matches everything. * * @since 2.1.0 */ define( 'EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES ); /** * Adds a rewrite rule that transforms a URL structure to a set of query vars. * * Any value in the $after parameter that isn't 'bottom' will result in the rule * being placed at the top of the rewrite rules. * * @since 2.1.0 * @since 4.4.0 Array support was added to the `$query` parameter. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $regex Regular expression to match request against. * @param string|array $query The corresponding query vars for this rewrite rule. * @param string $after Optional. Priority of the new rule. Accepts 'top' * or 'bottom'. Default 'bottom'. */ function add_rewrite_rule( $regex, $query, $after = 'bottom' ) { global $wp_rewrite; $wp_rewrite->add_rule( $regex, $query, $after ); } /** * Adds a new rewrite tag (like %postname%). * * The `$query` parameter is optional. If it is omitted you must ensure that you call * this on, or before, the {@see 'init'} hook. This is because `$query` defaults to * `$tag=`, and for this to work a new query var has to be added. * * @since 2.1.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. * * @param string $tag Name of the new rewrite tag. * @param string $regex Regular expression to substitute the tag for in rewrite rules. * @param string $query Optional. String to append to the rewritten query. Must end in '='. Default empty. */ function add_rewrite_tag( $tag, $regex, $query = '' ) { // Validate the tag's name. if ( strlen( $tag ) < 3 || '%' !== $tag[0] || '%' !== $tag[ strlen( $tag ) - 1 ] ) { return; } global $wp_rewrite, $wp; if ( empty( $query ) ) { $qv = trim( $tag, '%' ); $wp->add_query_var( $qv ); $query = $qv . '='; } $wp_rewrite->add_rewrite_tag( $tag, $regex, $query ); } /** * Removes an existing rewrite tag (like %postname%). * * @since 4.5.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $tag Name of the rewrite tag. */ function remove_rewrite_tag( $tag ) { global $wp_rewrite; $wp_rewrite->remove_rewrite_tag( $tag ); } /** * Adds a permalink structure. * * @since 3.0.0 * * @see WP_Rewrite::add_permastruct() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name for permalink structure. * @param string $struct Permalink structure. * @param array $args Optional. Arguments for building the rules from the permalink structure, * see WP_Rewrite::add_permastruct() for full details. Default empty array. */ function add_permastruct( $name, $struct, $args = array() ) { global $wp_rewrite; // Back-compat for the old parameters: $with_front and $ep_mask. if ( ! is_array( $args ) ) { $args = array( 'with_front' => $args ); } if ( func_num_args() === 4 ) { $args['ep_mask'] = func_get_arg( 3 ); } $wp_rewrite->add_permastruct( $name, $struct, $args ); } /** * Removes a permalink structure. * * Can only be used to remove permastructs that were added using add_permastruct(). * Built-in permastructs cannot be removed. * * @since 4.5.0 * * @see WP_Rewrite::remove_permastruct() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name for permalink structure. */ function remove_permastruct( $name ) { global $wp_rewrite; $wp_rewrite->remove_permastruct( $name ); } /** * Adds a new feed type like /atom1/. * * @since 2.1.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $feedname Feed name. * @param callable $callback Callback to run on feed display. * @return string Feed action name. */ function add_feed( $feedname, $callback ) { global $wp_rewrite; if ( ! in_array( $feedname, $wp_rewrite->feeds, true ) ) { $wp_rewrite->feeds[] = $feedname; } $hook = 'do_feed_' . $feedname; // Remove default function hook. remove_action( $hook, $hook ); add_action( $hook, $callback, 10, 2 ); return $hook; } /** * Removes rewrite rules and then recreate rewrite rules. * * @since 3.0.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param bool $hard Whether to update .htaccess (hard flush) or just update * rewrite_rules option (soft flush). Default is true (hard). */ function flush_rewrite_rules( $hard = true ) { global $wp_rewrite; if ( is_callable( array( $wp_rewrite, 'flush_rules' ) ) ) { $wp_rewrite->flush_rules( $hard ); } } /** * Adds an endpoint, like /trackback/. * * Adding an endpoint creates extra rewrite rules for each of the matching * places specified by the provided bitmask. For example: * * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); * * will add a new rewrite rule ending with "json(/(.*))?/?$" for every permastruct * that describes a permalink (post) or page. This is rewritten to "json=$match" * where $match is the part of the URL matched by the endpoint regex (e.g. "foo" in * "[permalink]/json/foo/"). * * A new query var with the same name as the endpoint will also be created. * * When specifying $places ensure that you are using the EP_* constants (or a * combination of them using the bitwise OR operator) as their values are not * guaranteed to remain static (especially `EP_ALL`). * * Be sure to flush the rewrite rules - see flush_rewrite_rules() - when your plugin gets * activated and deactivated. * * @since 2.1.0 * @since 4.3.0 Added support for skipping query var registration by passing `false` to `$query_var`. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name of the endpoint. * @param int $places Endpoint mask describing the places the endpoint should be added. * Accepts a mask of: * - `EP_ALL` * - `EP_NONE` * - `EP_ALL_ARCHIVES` * - `EP_ATTACHMENT` * - `EP_AUTHORS` * - `EP_CATEGORIES` * - `EP_COMMENTS` * - `EP_DATE` * - `EP_DAY` * - `EP_MONTH` * - `EP_PAGES` * - `EP_PERMALINK` * - `EP_ROOT` * - `EP_SEARCH` * - `EP_TAGS` * - `EP_YEAR` * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var * for this endpoint. Defaults to the value of `$name`. */ function add_rewrite_endpoint( $name, $places, $query_var = true ) { global $wp_rewrite; $wp_rewrite->add_endpoint( $name, $places, $query_var ); } /** * Filters the URL base for taxonomies. * * To remove any manually prepended /index.php/. * * @access private * @since 2.6.0 * * @param string $base The taxonomy base that we're going to filter * @return string */ function _wp_filter_taxonomy_base( $base ) { if ( ! empty( $base ) ) { $base = preg_replace( '|^/index\.php/|', '', $base ); $base = trim( $base, '/' ); } return $base; } /** * Resolves numeric slugs that collide with date permalinks. * * Permalinks of posts with numeric slugs can sometimes look to WP_Query::parse_query() * like a date archive, as when your permalink structure is `/%year%/%postname%/` and * a post with post_name '05' has the URL `/2015/05/`. * * This function detects conflicts of this type and resolves them in favor of the * post permalink. * * Note that, since 4.3.0, wp_unique_post_slug() prevents the creation of post slugs * that would result in a date archive conflict. The resolution performed in this * function is primarily for legacy content, as well as cases when the admin has changed * the site's permalink structure in a way that introduces URL conflicts. * * @since 4.3.0 * * @param array $query_vars Optional. Query variables for setting up the loop, as determined in * WP::parse_request(). Default empty array. * @return array Returns the original array of query vars, with date/post conflicts resolved. */ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) { if ( ! isset( $query_vars['year'] ) && ! isset( $query_vars['monthnum'] ) && ! isset( $query_vars['day'] ) ) { return $query_vars; } // Identify the 'postname' position in the permastruct array. $permastructs = array_values( array_filter( explode( '/', get_option( 'permalink_structure' ) ) ) ); $postname_index = array_search( '%postname%', $permastructs, true ); if ( false === $postname_index ) { return $query_vars; } /* * A numeric slug could be confused with a year, month, or day, depending on position. To account for * the possibility of post pagination (eg 2015/2 for the second page of a post called '2015'), our * `is_*` checks are generous: check for year-slug clashes when `is_year` *or* `is_month`, and check * for month-slug clashes when `is_month` *or* `is_day`. */ $compare = ''; if ( 0 === $postname_index && ( isset( $query_vars['year'] ) || isset( $query_vars['monthnum'] ) ) ) { $compare = 'year'; } elseif ( $postname_index && '%year%' === $permastructs[ $postname_index - 1 ] && ( isset( $query_vars['monthnum'] ) || isset( $query_vars['day'] ) ) ) { $compare = 'monthnum'; } elseif ( $postname_index && '%monthnum%' === $permastructs[ $postname_index - 1 ] && isset( $query_vars['day'] ) ) { $compare = 'day'; } if ( ! $compare ) { return $query_vars; } // This is the potentially clashing slug. $value = ''; if ( $compare && array_key_exists( $compare, $query_vars ) ) { $value = $query_vars[ $compare ]; } $post = get_page_by_path( $value, OBJECT, 'post' ); if ( ! ( $post instanceof WP_Post ) ) { return $query_vars; } // If the date of the post doesn't match the date specified in the URL, resolve to the date archive. if ( preg_match( '/^([0-9]{4})\-([0-9]{2})/', $post->post_date, $matches ) && isset( $query_vars['year'] ) && ( 'monthnum' === $compare || 'day' === $compare ) ) { // $matches[1] is the year the post was published. if ( (int) $query_vars['year'] !== (int) $matches[1] ) { return $query_vars; } // $matches[2] is the month the post was published. if ( 'day' === $compare && isset( $query_vars['monthnum'] ) && (int) $query_vars['monthnum'] !== (int) $matches[2] ) { return $query_vars; } } /* * If the located post contains nextpage pagination, then the URL chunk following postname may be * intended as the page number. Verify that it's a valid page before resolving to it. */ $maybe_page = ''; if ( 'year' === $compare && isset( $query_vars['monthnum'] ) ) { $maybe_page = $query_vars['monthnum']; } elseif ( 'monthnum' === $compare && isset( $query_vars['day'] ) ) { $maybe_page = $query_vars['day']; } // Bug found in #11694 - 'page' was returning '/4'. $maybe_page = (int) trim( $maybe_page, '/' ); $post_page_count = substr_count( $post->post_content, '<!--nextpage-->' ) + 1; // If the post doesn't have multiple pages, but a 'page' candidate is found, resolve to the date archive. if ( 1 === $post_page_count && $maybe_page ) { return $query_vars; } // If the post has multiple pages and the 'page' number isn't valid, resolve to the date archive. if ( $post_page_count > 1 && $maybe_page > $post_page_count ) { return $query_vars; } // If we've gotten to this point, we have a slug/date clash. First, adjust for nextpage. if ( '' !== $maybe_page ) { $query_vars['page'] = (int) $maybe_page; } // Next, unset autodetected date-related query vars. unset( $query_vars['year'] ); unset( $query_vars['monthnum'] ); unset( $query_vars['day'] ); // Then, set the identified post. $query_vars['name'] = $post->post_name; // Finally, return the modified query vars. return $query_vars; } /** * Examines a URL and try to determine the post ID it represents. * * Checks are supposedly from the hosted site blog. * * @since 1.0.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. * * @param string $url Permalink to check. * @return int Post ID, or 0 on failure. */ function url_to_postid( $url ) { global $wp_rewrite; /** * Filters the URL to derive the post ID from. * * @since 2.2.0 * * @param string $url The URL to derive the post ID from. */ $url = apply_filters( 'url_to_postid', $url ); $url_host = parse_url( $url, PHP_URL_HOST ); if ( is_string( $url_host ) ) { $url_host = str_replace( 'www.', '', $url_host ); } else { $url_host = ''; } $home_url_host = parse_url( home_url(), PHP_URL_HOST ); if ( is_string( $home_url_host ) ) { $home_url_host = str_replace( 'www.', '', $home_url_host ); } else { $home_url_host = ''; } // Bail early if the URL does not belong to this site. if ( $url_host && $url_host !== $home_url_host ) { return 0; } // First, check to see if there is a 'p=N' or 'page_id=N' to match against. if ( preg_match( '#[?&](p|page_id|attachment_id)=(\d+)#', $url, $values ) ) { $id = absint( $values[2] ); if ( $id ) { return $id; } } // Get rid of the #anchor. $url_split = explode( '#', $url ); $url = $url_split[0]; // Get rid of URL ?query=string. $url_split = explode( '?', $url ); $url = $url_split[0]; // Set the correct URL scheme. $scheme = parse_url( home_url(), PHP_URL_SCHEME ); $url = set_url_scheme( $url, $scheme ); // Add 'www.' if it is absent and should be there. if ( str_contains( home_url(), '://www.' ) && ! str_contains( $url, '://www.' ) ) { $url = str_replace( '://', '://www.', $url ); } // Strip 'www.' if it is present and shouldn't be. if ( ! str_contains( home_url(), '://www.' ) ) { $url = str_replace( '://www.', '://', $url ); } if ( trim( $url, '/' ) === home_url() && 'page' === get_option( 'show_on_front' ) ) { $page_on_front = get_option( 'page_on_front' ); if ( $page_on_front && get_post( $page_on_front ) instanceof WP_Post ) { return (int) $page_on_front; } } // Check to see if we are using rewrite rules. $rewrite = $wp_rewrite->wp_rewrite_rules(); // Not using rewrite rules, and 'p=N' and 'page_id=N' methods failed, so we're out of options. if ( empty( $rewrite ) ) { return 0; } // Strip 'index.php/' if we're not using path info permalinks. if ( ! $wp_rewrite->using_index_permalinks() ) { $url = str_replace( $wp_rewrite->index . '/', '', $url ); } if ( str_contains( trailingslashit( $url ), home_url( '/' ) ) ) { // Chop off http://domain.com/[path]. $url = str_replace( home_url(), '', $url ); } else { // Chop off /path/to/blog. $home_path = parse_url( home_url( '/' ) ); $home_path = isset( $home_path['path'] ) ? $home_path['path'] : ''; $url = preg_replace( sprintf( '#^%s#', preg_quote( $home_path ) ), '', trailingslashit( $url ) ); } // Trim leading and lagging slashes. $url = trim( $url, '/' ); $request = $url; $post_type_query_vars = array(); foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { if ( ! empty( $t->query_var ) ) { $post_type_query_vars[ $t->query_var ] = $post_type; } } // Look for matches. $request_match = $request; foreach ( (array) $rewrite as $match => $query ) { /* * If the requesting file is the anchor of the match, * prepend it to the path info. */ if ( ! empty( $url ) && ( $url !== $request ) && str_starts_with( $match, $url ) ) { $request_match = $url . '/' . $request; } if ( preg_match( "#^$match#", $request_match, $matches ) ) { if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { // This is a verbose page match, let's check to be sure about it. $page = get_page_by_path( $matches[ $varmatch[1] ] ); if ( ! $page ) { continue; } $post_status_obj = get_post_status_object( $page->post_status ); if ( ! $post_status_obj->public && ! $post_status_obj->protected && ! $post_status_obj->private && $post_status_obj->exclude_from_search ) { continue; } } /* * Got a match. * Trim the query of everything up to the '?'. */ $query = preg_replace( '!^.+\?!', '', $query ); // Substitute the substring matches into the query. $query = addslashes( WP_MatchesMapRegex::apply( $query, $matches ) ); // Filter out non-public query vars. global $wp; parse_str( $query, $query_vars ); $query = array(); foreach ( (array) $query_vars as $key => $value ) { if ( in_array( (string) $key, $wp->public_query_vars, true ) ) { $query[ $key ] = $value; if ( isset( $post_type_query_vars[ $key ] ) ) { $query['post_type'] = $post_type_query_vars[ $key ]; $query['name'] = $value; } } } // Resolve conflicts between posts with numeric slugs and date archive queries. $query = wp_resolve_numeric_slug_conflicts( $query ); // Do the query. $query = new WP_Query( $query ); if ( ! empty( $query->posts ) && $query->is_singular ) { return $query->post->ID; } else { return 0; } } } return 0; }