at path:
ROOT
/
wp-includes
/
class-wp-view-config-data.php
run:
R
W
Run
ID3
DIR
2026-09-09 19:08:36
R
W
Run
IXR
DIR
2026-09-10 03:47:11
R
W
Run
PHPMailer
DIR
2026-09-10 00:49:39
R
W
Run
Requests
DIR
2026-09-09 19:07:27
R
W
Run
SimplePie
DIR
2026-09-09 19:08:36
R
W
Run
Text
DIR
2026-09-09 19:08:36
R
W
Run
abilities-api
DIR
2026-09-09 19:24:56
R
W
Run
ai-client
DIR
2026-09-09 19:24:56
R
W
Run
assets
DIR
2026-09-09 19:24:59
R
W
Run
block-bindings
DIR
2026-09-14 23:43:30
R
W
Run
block-patterns
DIR
2026-09-14 23:43:23
R
W
Run
block-supports
DIR
2026-09-14 23:43:27
R
W
Run
blocks
DIR
2026-09-09 19:24:57
R
W
Run
build
DIR
2026-09-14 23:43:09
R
W
Run
certificates
DIR
2026-09-09 19:08:36
R
W
Run
css
DIR
2026-09-09 19:24:56
R
W
Run
customize
DIR
2026-09-15 00:08:51
R
W
Run
fonts
DIR
2026-09-09 19:08:37
R
W
Run
html-api
DIR
2026-09-14 23:37:07
R
W
Run
images
DIR
2026-09-09 19:24:56
R
W
Run
interactivity-api
DIR
2026-09-14 23:37:29
R
W
Run
js
DIR
2026-09-09 19:24:57
R
W
Run
l10n
DIR
2026-09-15 00:38:49
R
W
Run
php-ai-client
DIR
2026-09-09 19:24:56
R
W
Run
php-compat
DIR
2026-09-09 19:08:38
R
W
Run
pomo
DIR
2026-09-09 19:08:38
R
W
Run
rest-api
DIR
2026-09-14 23:57:00
R
W
Run
sitemaps
DIR
2026-09-09 19:08:38
R
W
Run
sodium_compat
DIR
2026-09-09 19:08:38
R
W
Run
style-engine
DIR
2026-09-09 19:08:38
R
W
Run
theme-compat
DIR
2026-09-14 23:56:42
R
W
Run
widgets
DIR
2026-09-10 00:51:30
R
W
Run
abilities-api.php
32.03 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
abilities.php
11.52 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
admin-bar.php
39.13 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ai-client.php
2.49 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
atomlib.php
11.9 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
author-template.php
19.38 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
block-bindings.php
7.45 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
block-editor.php
28.05 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
block-i18n.json
316 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
block-patterns.php
15.24 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
block-template-utils.php
61.69 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
block-template.php
17.83 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
blocks.php
121.29 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
bookmark-template.php
12.47 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
bookmark.php
15.07 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
cache-compat.php
10.76 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
cache.php
13.17 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
canonical.php
33.97 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
capabilities.php
42.56 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
category-template.php
55.65 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
category.php
12.53 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-IXR.php
2.55 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-avif-info.php
29.3 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-feed.php
539 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-http.php
367 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-json.php
42.65 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-oembed.php
401 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-phpass.php
6.61 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-phpmailer.php
664 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-pop3.php
20.61 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-requests.php
2.18 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-simplepie.php
453 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-smtp.php
457 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-snoopy.php
36.83 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-category-dropdown.php
2.41 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-category.php
8.28 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-comment.php
13.89 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-nav-menu.php
11.76 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-page-dropdown.php
2.65 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-walker-page.php
7.43 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-admin-bar.php
17.58 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-ajax-response.php
5.16 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-application-passwords.php
16.7 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-block-bindings-registry.php
8.07 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-block-bindings-source.php
2.92 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-block-editor-context.php
1.32 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-block-list.php
4.6 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-metadata-registry.php
11.57 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-parser-block.php
2.5 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-parser-frame.php
1.95 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-parser.php
11.25 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-block-pattern-categories-registry.php
4.28 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-patterns-registry.php
10.02 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-block-processor.php
68.28 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-styles-registry.php
6.27 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-supports.php
7.4 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-block-template.php
2.06 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-block-templates-registry.php
6.91 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-type-registry.php
5.18 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block-type.php
16.82 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-block.php
27.57 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-classic-to-block-menu-converter.php
3.93 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-comment-query.php
47.89 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-comment.php
16.84 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-connector-registry.php
14.83 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-customize-control.php
25.5 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-customize-manager.php
198.15 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-customize-nav-menus.php
56.67 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-customize-panel.php
10.45 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-customize-section.php
10.95 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-customize-setting.php
29.25 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-customize-widgets.php
70.89 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-date-query.php
35.13 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-dependencies.php
16.69 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-dependency.php
2.59 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-duotone.php
39.88 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-editor.php
70.54 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-embed.php
15.54 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-error.php
7.34 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-exception.php
253 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-fatal-error-handler.php
7.96 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-feed-cache-transient.php
3.23 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-feed-cache.php
969 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-filter-sentinel.php
760 By
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-hook.php
17.06 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-http-cookie.php
7.1 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-http-curl.php
12.95 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-http-encoding.php
6.53 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-http-ixr-client.php
3.43 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-http-proxy.php
5.84 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-http-requests-hooks.php
1.97 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-http-requests-response.php
4.14 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-http-response.php
2.91 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-http-streams.php
16.37 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-http.php
40.67 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-icon-collections-registry.php
5.67 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-icons-registry.php
9.67 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-image-editor-gd.php
20.25 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-image-editor-imagick.php
42.44 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-image-editor.php
17.05 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-list-util.php
7.27 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-locale-switcher.php
6.62 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-locale.php
16.45 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-matchesmapregex.php
1.79 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-meta-query.php
29.79 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-metadata-lazyloader.php
6.67 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-navigation-fallback.php
8.98 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-network-query.php
19.52 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-network.php
12.12 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-object-cache.php
17.11 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-oembed-controller.php
6.74 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-oembed.php
33.57 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-paused-extensions-storage.php
4.95 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-phpmailer.php
4.25 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-plugin-dependencies.php
24.62 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-post-type.php
29.95 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-post.php
8.6 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-query.php
160.3 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-recovery-mode-cookie-service.php
6.72 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-recovery-mode-email-service.php
10.9 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-recovery-mode-key-service.php
4.8 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-recovery-mode-link-service.php
3.44 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-recovery-mode.php
11.19 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-rewrite.php
62.2 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-role.php
2.46 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-roles.php
9.11 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-script-modules.php
39.79 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-scripts.php
35.89 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-session-tokens.php
7.15 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-simplepie-file.php
3.47 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-simplepie-sanitize-kses.php
1.86 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-site-query.php
30.74 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-site.php
7.65 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-speculation-rules.php
7.7 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-styles.php
13 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-tax-query.php
19.12 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-taxonomy.php
18.12 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-term-query.php
39.8 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-term.php
5.14 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-text-diff-renderer-inline.php
979 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-text-diff-renderer-table.php
18.48 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-textdomain-registry.php
10.24 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-theme-json-data.php
1.76 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-theme-json-resolver.php
34.86 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-theme-json-schema.php
7.19 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-theme-json.php
216.31 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-theme.php
64.27 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-token-map.php
28.35 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-url-pattern-prefixer.php
4.69 KB
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class-wp-user-meta-session-tokens.php
2.88 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-user-query.php
43.07 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-user-request.php
2.29 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-user.php
22.65 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-view-config-data.php
28.74 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-walker.php
12.98 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
class-wp-widget-factory.php
3.26 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp-widget.php
18.02 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
class-wp-xmlrpc-server.php
211.2 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wp.php
25.75 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class-wpdb.php
118.59 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
class.wp-dependencies.php
373 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class.wp-scripts.php
343 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
class.wp-styles.php
338 By
2026-09-09 19:08:36
R
W
Run
Delete
Rename
comment-template.php
100.79 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
comment.php
147.1 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
compat-utf8.php
18.93 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
compat.php
21.95 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
connectors.php
32.15 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
cron.php
45.18 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
date.php
400 By
2026-09-09 19:08:37
R
W
Run
Delete
Rename
default-constants.php
11.1 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
default-filters.php
38.57 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
default-widgets.php
2.23 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
deprecated.php
189.43 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
embed-template.php
338 By
2026-09-09 19:08:37
R
W
Run
Delete
Rename
embed.php
38.3 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
error-protection.php
4 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
error_log
154.13 KB
2026-09-15 11:46:20
R
W
Run
Delete
Rename
feed-atom-comments.php
5.38 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
feed-atom.php
3.04 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
feed-rdf.php
2.61 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
feed-rss.php
1.16 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
feed-rss2-comments.php
4.04 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
feed-rss2.php
3.71 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
feed.php
24.6 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
fonts.php
9.56 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
formatting.php
349.27 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
functions.php
288.56 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
functions.wp-scripts.php
20.01 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
functions.wp-styles.php
8.45 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
general-template.php
179.17 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
global-styles-and-settings.php
20.29 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
http.php
28.28 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
https-detection.php
5.72 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
https-migration.php
4.63 KB
2026-09-09 19:08:37
R
W
Run
Delete
Rename
icons.php
6.19 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
json-schema.php
7.62 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
kses.php
86.42 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
l10n.php
69.74 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
link-template.php
156.39 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
load.php
55.15 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
locale.php
162 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
media-template.php
64.22 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
media.php
231.25 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
meta.php
65.17 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-blogs.php
25.71 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-default-constants.php
4.81 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
ms-default-filters.php
6.48 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
ms-deprecated.php
21.28 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-files.php
2.79 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-functions.php
90.36 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-load.php
19.58 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
ms-network.php
3.69 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
ms-settings.php
4.1 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
ms-site.php
40.75 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
nav-menu-template.php
25.37 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
nav-menu.php
43.23 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
option.php
102.78 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
pluggable-deprecated.php
6.18 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
pluggable.php
124.92 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
plugin.php
35.81 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
post-formats.php
6.9 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
post-template.php
67.51 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
post-thumbnail-template.php
10.62 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
post.php
298.06 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
query.php
36.67 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
registration-functions.php
200 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
registration.php
200 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
rest-api.php
100.54 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
revision.php
30.51 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
rewrite.php
19.11 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
robots-template.php
5.06 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
rss-functions.php
277 By
2026-09-09 19:24:56
R
W
Run
Delete
Rename
rss.php
22.66 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
script-loader.php
159.72 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
script-modules.php
12.02 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
session.php
258 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
shortcodes.php
23.47 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
sitemaps.php
3.16 KB
2026-09-09 19:08:38
R
W
Run
Delete
Rename
speculative-loading.php
11.6 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
spl-autoload-compat.php
441 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
style-engine.php
7.86 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
taxonomy.php
174.13 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
template-canvas.php
544 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
template-loader.php
4.17 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
template.php
35.96 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
theme-i18n.json
1.85 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
theme-previews.php
2.82 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
theme-templates.php
3.96 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
theme.json
9.26 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
theme.php
131.49 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
update.php
37.37 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
user.php
176.08 KB
2026-09-09 19:24:58
R
W
Run
Delete
Rename
utf8.php
6.81 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
vars.php
6.45 KB
2026-09-09 19:24:57
R
W
Run
Delete
Rename
version.php
1.08 KB
2026-09-09 19:24:59
R
W
Run
Delete
Rename
view-config.php
18.64 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
view-transitions.php
602 By
2026-09-09 19:24:57
R
W
Run
Delete
Rename
widgets.php
69.21 KB
2026-09-09 19:24:56
R
W
Run
Delete
Rename
wp-db.php
445 By
2026-09-09 19:08:38
R
W
Run
Delete
Rename
wp-diff.php
792 By
2026-09-09 19:24:56
R
W
Run
Delete
Rename
error_log
up
📄
class-wp-view-config-data.php
Save
<?php /** * WP_View_Config_Data class * * @package WordPress * @since 7.1.0 */ /** * Holds an entity's view configuration while it is being built. * * An instance of this class is what `get_entity_view_config_{$kind}_{$name}` * filter callbacks receive: a callback changes the configuration by calling * methods on the instance and returning it. The configuration has four * top-level keys — `default_view`, `default_layouts`, `view_list`, and * `form` — and there are three ways to contribute. They form a gradient of how * deep the replacement reaches: * * - The `merge()` method merges partial changes (patches) into what is already * there: `default_view`, `default_layouts`, and the `form` settings by key, * and the `view_list` entries by view `slug` identity. This is what plugins * should use: patches compose with core's configuration and with other * plugins'. * - `replace()` applies a patch the same way `merge()` does, with one * difference: a list in the patch replaces the current list wholesale * instead of merging into it by member identity. It shouldn't be the * default choice — a callback that replaces a list stops inheriting core's * future additions to it — but it's useful when a contributor needs to pin * a list to an exact set of members. * - `set()` goes one step further: it replaces each top-level key the patch * names wholesale, dropping whatever that key held instead of merging into * it. It's for a callback that owns a key outright and wants to pin it to an * exact shape without the inherited default leaking through a key-by-key * merge. * * All three touch only the top-level keys the patch names — an omitted key * keeps whatever it had, and a top-level `null` value drops the key it names, * which resets it to its default. They differ only in how deep the replacement * reaches once a key is named: `merge()` and `replace()` merge the value in * key by key (an associative array merges member by member, a nested `null` * deletes just that leaf, a scalar replaces just that value), while `set()` * swaps the whole value. A nested `null` deletes just the leaf it names in * every case. A patch value whose shape does not match the current value — * an associative array where a list lives, or the reverse — is rejected with * a notice rather than merged, and an empty array under `merge()` is a * no-op. Each patch also declares the configuration schema * version it was written against (currently 1), so a future WordPress release * that changes the configuration shape can migrate existing patches forward * instead of breaking them. * * Where those three write values, `remove()` deletes them: it takes a spec of * names — a list to delete entries at a level, or a nested map to reach deeper — * and prunes just what it names, mirroring the configuration's shape all the way * down to individual list members. * * @since 7.1.0 */ class WP_View_Config_Data { /** * The latest supported configuration schema version. * * @since 7.1.0 * @var int */ const LATEST_VERSION = 1; /** * The documented top-level configuration keys. * * @since 7.1.0 * @var string[] */ const CONFIG_KEYS = array( 'default_view', 'default_layouts', 'view_list', 'form' ); /** * The configuration being contributed to. * * @since 7.1.0 * @var array */ private $config; /** * The default configuration. * * @since 7.1.0 * @var array */ private $defaults; /** * Constructor. * * @since 7.1.0 * * @param array $config The base configuration to contribute to. */ public function __construct( array $config ) { $this->config = $config; $this->defaults = $config; } /** * Returns the current configuration array. * * Deliberately private: filter callbacks receive the container, not the * materialized configuration, so they cannot read the built result and * become coupled to a specific configuration shape or schema version. Only * the class itself reconciles the container back into an array. * * @since 7.1.0 * * @return array The configuration. */ private function get_data() { return $this->config; } /** * Applies the entity view configuration filter and returns the result. * * Exposes the container through the dynamic * `get_entity_view_config_{$kind}_{$name}` filter (with the dynamic portions * lowercased), so that core and third parties can provide the configuration for a specific entity, * then reconciles the filtered container back into a plain configuration array, * limited to the documented configuration keys. * * @since 7.1.0 * * @param string $kind The entity kind (e.g. `postType`). * @param string $name The entity name (e.g. `page`). * @return array The filtered configuration, limited to the documented keys. */ public function apply_filters( $kind, $name ) { /** * Filters the view configuration for a given entity. * * The dynamic portions of the hook name, `$kind` and `$name`, refer to the * entity kind (e.g. `postType`) and the entity name (e.g. `page`), * lowercased — so the `postType`/`page` entity maps to the * `get_entity_view_config_posttype_page` hook. * * Callbacks receive a WP_View_Config_Data object and change the * configuration through its methods. Each write method takes the schema * version the change was authored against as its second argument, * and returns the object for chaining: * * - `merge( $patch, $version )` merges a partial change into the current * configuration. It touches only the top-level keys the patch names, and * merges each named value into the current one by shape: a scalar * replaces, an associative array merges key by key, and a list merges by * member identity (`id`, `slug`, or `field`). A `null` value drops the * key it names, resetting it to its default. * - `replace( $patch, $version )` applies a patch exactly like `merge()`, * but swaps any list it names wholesale instead of merging that list by * member identity. * - `set( $patch, $version )` also touches only the keys the patch names, * but swaps each named value in wholesale, dropping whatever the key held * before — for a callback that owns those keys outright. * - `remove( $spec, $version )` deletes named properties. The spec mirrors * the configuration shape: a list of names deletes entries at that level, * and a nested map recurses to prune from within a named value, down to * individual list members. * * A change that declares an unsupported schema version is rejected and does * not alter anything. As with any filter, each callback's return value is * passed to the next callback as `$data`, so callbacks must return the * container they received: a callback that returns nothing, or any other * value, hands that result to every callback hooked at a later priority * instead of the container. Since the write methods return the container, * a callback can end with `return $data->merge( $patch, $version );`. * * @since 7.1.0 * * @param WP_View_Config_Data $data The view configuration container * for the entity, exposing the * `default_view`, `default_layouts`, * `view_list`, and `form` keys. * @param array $entity { * The entity the configuration is built for. * * @type string $kind The entity kind. * @type string $name The entity name. * } */ apply_filters( wp_get_entity_view_config_hook_name( $kind, $name ), $this, array( 'kind' => $kind, 'name' => $name, ) ); // Discard any keys the filter introduced that are not part of the // documented configuration shape. return array_intersect_key( $this->get_data(), array_flip( self::CONFIG_KEYS ) ); } /** * Replaces whole top-level keys, leaving the rest of the configuration alone. * * Like merge() and replace(), set() applies a patch of top-level keys and * touches only the keys the patch names: a key the patch omits keeps whatever * it had, and a `null` value drops the key it names (which resets it to its * default). The difference is depth — where merge() and replace() merge a * named key's value into the current one key by key, set() swaps the whole * value in wholesale, dropping whatever the key held before. A `null` nested * within that value still drops the property it names, so set() honours * nulls at every depth just as merge() and replace() do. * * Use it when a callback owns a key outright and wants to pin it to an exact * shape, without the inherited default leaking through a key-by-key merge. * * A patch that declares an unsupported schema version is rejected and does * not change anything. * * @since 7.1.0 * * @param array $patch The partial configuration whose named keys to replace. * @param int $version The schema version the patch was authored against. * @return WP_View_Config_Data The instance, for chaining. */ public function set( array $patch, int $version ) { return $this->apply( $patch, $version, __METHOD__, 'set' ); } /** * Removes named properties from the configuration, leaving the rest alone. * * Where merge(), replace(), and set() take a patch of *values* to write, * remove() takes a spec of *names* to delete, and its shape mirrors the * configuration it prunes: * * - A list of names deletes each named entry from the value at that level: a * key from an associative array, or the member with a matching identity * (`id`, `slug`, `field`, or a bare scalar) from a list. * - An associative array maps a name to a nested spec, recursing into that * entry's value to delete from within it. * * Naming a top-level configuration key is the one exception: like a `null` * value in a patch, it resets that key to its default rather than dropping it * outright, so top-level removal and top-level `null` compose the same way. * * So `array( 'default_view' )` resets the whole `default_view` key to its * default, `array( 'default_view' => array( 'sort' ) )` drops just its `sort` * property, and `array( 'default_view' => array( 'fields' => array( 'f2' ) ) )` * drops the `f2` member from its `fields` list. A name that is not present is * ignored, and a list is renumbered after a member is removed. * * A spec that declares an unsupported schema version is rejected and does not * change anything. * * @since 7.1.0 * * @param array $spec The names to remove, keyed to match the configuration shape. * @param int $version The schema version the spec was authored against. * @return WP_View_Config_Data The instance, for chaining. */ public function remove( array $spec, int $version ) { if ( $version <= 0 || $version > self::LATEST_VERSION ) { _doing_it_wrong( __METHOD__, esc_html__( 'A view configuration patch must declare a supported schema version.' ), '7.1.0' ); return $this; } // A flat list names top-level keys to reset; a map recurses into each // named key to prune from within its value. $spec_is_list = array_is_list( $spec ); foreach ( $spec as $spec_key => $spec_value ) { $key = $spec_is_list ? $spec_value : $spec_key; if ( ! in_array( $key, self::CONFIG_KEYS, true ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: the configuration key. */ esc_html__( '"%s" is not a documented view configuration key.' ), esc_html( $key ) ), '7.1.0' ); continue; } if ( $spec_is_list ) { // Removing a top-level key resets it to its default, just as a // null patch value does. $this->config[ $key ] = $this->defaults[ $key ] ?? array(); } elseif ( array_key_exists( $key, $this->config ) ) { $this->config[ $key ] = $this->remove_properties( $this->config[ $key ], $spec_value ); } } return $this; } /** * Replaces list values while merging the rest of a partial configuration. * * Takes the same arguments as merge() and applies the patch the same way, * with one difference: a list in the patch replaces the current list * wholesale instead of merging into it by member identity. Associative * arrays still merge key by key, `null` still drops what it names, and a * scalar still replaces the current value. * * It shouldn't be the default choice — a callback that replaces a list * stops inheriting core's future additions to it — but it's useful when a * contributor needs to pin a list to an exact set of members. * * The shape rule applies here too: a patch value whose shape does not match * the current value — an associative array where a list lives, or a * non-empty list where an associative value lives — is rejected with a * notice and leaves the current value unchanged. An empty array is exempt, * so replacing a list with an empty list still clears it. * * A patch that declares an unsupported schema version is rejected and does * not change anything. * * @since 7.1.0 * * @param array $patch The partial configuration to apply. * @param int $version The schema version the patch was authored against. * @return WP_View_Config_Data The instance, for chaining. */ public function replace( array $patch, int $version ) { return $this->apply( $patch, $version, __METHOD__, 'replace' ); } /** * Merges a partial configuration into the existing one. * * Applies a patch of top-level keys and touches only the keys the patch * names: a key the patch omits keeps whatever it had, and a `null` value * drops the key it names (which resets it to its default). Each named key's * value is then merged into the current one by value shape: * * - a scalar replaces the current value; * - an associative array merges key by key, with a nested `null` deleting * just the leaf it names; * - a list merges into the current list by member identity. * * Identity is the member's value cast to a string: a bare scalar is its own * identity, and a map is identified by the value of the first of the * well-known identity keys (`id`, `slug`, `field`) it carries. A member * whose identity matches one already present merges into it in place, keeping * its position; a member with no identity is appended to the end of the list. * * For example, given this patch: * * ```php * array( * 'default_view' => array( 'titleField' => 'newTitleField', 'fields' => array( 'newField' ) ), * 'default_layouts' => array( 'grid' => array( 'layout' => array( 'badgeFields' => array( 'newField' ) ) ) ), * 'view_list' => array( array( 'slug' => 'table', 'title' => 'New title' ) ), * ) * ``` * * - default_view will be updated so the titleField is 'newTitleField' and the newField is appended to the list of fields. * - default_layouts will be updated so that newField is appended to the badgeFields. * - view_list will be updated so that the view with slug 'table' has its title changed to 'New title'. * * A patch value only merges into a current value of the same shape: an * associative array where a list lives, or a non-empty list where an * associative value lives, is rejected with a notice and leaves the current * value unchanged. An empty array merges nothing and is a no-op — clear a * list with replace() and an empty list, or reset a key to its default with * a top-level `null`. * * A patch that declares an unsupported schema version is rejected and does * not change anything. * * @since 7.1.0 * * @param array $patch The partial configuration to merge. * @param int $version The schema version the patch was authored against. * @return WP_View_Config_Data The instance, for chaining. */ public function merge( array $patch, int $version ) { return $this->apply( $patch, $version, __METHOD__, 'merge' ); } /** * Applies a patch to the configuration, top-level key by top-level key. * * Shared by merge(), replace(), and set(); the three differ only in how the * value of a named key is applied, which is carried by $mode: * * - `merge` merges the value into the current one, lists by member identity; * - `replace` merges the value in the same way but swaps lists wholesale; * - `set` swaps the whole value in wholesale, without merging. * * In every mode a top-level `null` resets the key it names to its default, a * nested `null` drops the property it names, and an omitted key is left * untouched, so all three treat nulls the same way at every depth. * * @since 7.1.0 * * @param array $patch The partial configuration to apply. * @param int $version The schema version the patch was authored against. * @param string $method The public method the patch was passed to, for misuse reporting. * @param string $mode How to apply each named key's value: `merge`, `replace`, or `set`. * @return WP_View_Config_Data The instance, for chaining. */ private function apply( array $patch, int $version, $method, $mode ) { if ( $version <= 0 || $version > self::LATEST_VERSION ) { _doing_it_wrong( esc_html( $method ), esc_html__( 'A view configuration patch must declare a supported schema version.' ), '7.1.0' ); return $this; } foreach ( $patch as $key => $value ) { if ( ! in_array( $key, self::CONFIG_KEYS, true ) ) { _doing_it_wrong( esc_html( $method ), sprintf( /* translators: %s: the configuration key. */ esc_html__( '"%s" is not a documented view configuration key.' ), esc_html( $key ) ), '7.1.0' ); continue; } // A null patch value makes the top-level property reset to defaults. if ( null === $value ) { $this->config[ $key ] = $this->defaults[ $key ] ?? array(); continue; } // set() swaps the whole value in; merge()/replace() merge it into the // current one, differing only in how they treat lists. In every mode a // nested null still drops the property it names. $this->config[ $key ] = 'set' === $mode ? $this->strip_nulls( $value ) : $this->merge_properties( $this->config[ $key ] ?? array(), $value, 'replace' === $mode ); } return $this; } /** * Recursively drops every property whose value is `null` from a value. * * set() swaps a named key's value in wholesale rather than merging it into * the current one, so it has no existing leaf for a nested `null` to delete * the way merge() and replace() do. Stripping nulls here gives a nested * `null` the same "drop the property it names" meaning under set() that it * carries everywhere else. The same applies to a list replace() swaps in * wholesale. A list is renumbered after a member is removed so removed * entries do not leave gaps. * * @since 7.1.0 * * @param mixed $value The value to strip nulls from. * @return mixed The value with every `null` property removed, recursively. */ private function strip_nulls( $value ) { if ( ! is_array( $value ) ) { return $value; } $result = array(); foreach ( $value as $key => $item ) { // A null value drops the property it names. if ( null === $item ) { continue; } $result[ $key ] = $this->strip_nulls( $item ); } // Renumber a list so a removed member does not leave a gap. return array_is_list( $value ) ? array_values( $result ) : $result; } /** * Merges an incoming value into the current one, recursing by value shape. * * This is the core of the merge algorithm and is applied at every nesting * level: a scalar (or `null`) in $incoming replaces $current outright, an * associative array merges key by key (recursing here for each key, with a * `null` value deleting that key), and a list either replaces $current * wholesale ($replace_lists) or merges into it by member identity. The * $replace_lists flag is carried down through associative nesting so that, * under replace(), every list reached along the way is swapped wholesale. * * An array in $incoming only merges into a current value of the same shape. * A non-empty mismatch — an associative array where a list lives, or a * non-empty list where an associative value lives — is reported with * _doing_it_wrong() and leaves the current value unchanged, so a malformed * patch cannot silently destroy configuration. An empty array is * shape-ambiguous and merges nothing, so it is a no-op: clearing a list is * spelled replace() with an empty list, and resetting a key is spelled * `null`. * * @since 7.1.0 * * @param mixed $current The current value. * @param mixed $incoming The incoming value. * @param bool $replace_lists Whether a list in $incoming replaces the current list * wholesale instead of merging into it by member identity. * @return mixed The merged value. */ private function merge_properties( $current, $incoming, $replace_lists ) { // Scalar properties are merged as-is. if ( ! is_array( $incoming ) ) { return $incoming; } // Numerical indexed arrays are expected to be lists (sequential integer keys starting at 0). if ( array_is_list( $incoming ) ) { // A non-empty list only lands where a list (or nothing) lives, under // merge() and replace() alike. An empty array is shape-ambiguous and // exempt, so replace() with an empty list can still clear a list. if ( array() !== $incoming && is_array( $current ) && ! array_is_list( $current ) && array() !== $current ) { _doing_it_wrong( __METHOD__, esc_html__( 'A view configuration patch value must match the shape of the value it patches: a list merges into a list, and an associative array into an associative array.' ), '7.1.0' ); return $current; } // replace() takes an incoming list as-is; merge() merges it by member identity. if ( $replace_lists ) { // As-is except for nulls: a list swapped in wholesale has no // existing leaf for a null to delete (the same rationale as // set()), so a null member is dropped rather than stored. return $this->strip_nulls( $incoming ); } // An empty list has no members to merge, and an empty array is // shape-ambiguous, so merging one is a no-op rather than a reset. if ( array() === $incoming ) { return $current; } return $this->merge_list_by_identity( is_array( $current ) && array_is_list( $current ) ? $current : array(), $incoming ); } // Consider any other array as associative (keys are strings). if ( is_array( $current ) && array_is_list( $current ) && array() !== $current ) { _doing_it_wrong( __METHOD__, esc_html__( 'A view configuration patch value must match the shape of the value it patches: a list merges into a list, and an associative array into an associative array.' ), '7.1.0' ); return $current; } $result = is_array( $current ) && ! array_is_list( $current ) ? $current : array(); foreach ( $incoming as $key => $value ) { // A null patch value deletes the property. if ( null === $value ) { unset( $result[ $key ] ); continue; } $result[ $key ] = $this->merge_properties( array_key_exists( $key, $result ) ? $result[ $key ] : array(), $value, $replace_lists ); } return $result; } /** * Removes the properties a spec names from the current value. * * The mirror of merge_properties(), applied at every nesting level: a list in * $spec names entries to delete from $current — associative keys are unset, * and list members are matched by identity (list_item_identity) and dropped — * while an associative $spec recurses into each named entry to prune from * within it. A name absent from $current is ignored, and a list is renumbered * after members are removed so it keeps sequential keys. * * @since 7.1.0 * * @param mixed $current The current value. * @param mixed $spec The names to remove from it. * @return mixed The pruned value. */ private function remove_properties( $current, $spec ) { if ( ! is_array( $current ) || ! is_array( $spec ) ) { return $current; } $current_is_list = array_is_list( $current ); if ( array_is_list( $spec ) ) { // Each entry names something to delete from the current value. foreach ( $spec as $name ) { if ( $current_is_list ) { $current = $this->remove_list_member( $current, $name ); } else { unset( $current[ $name ] ); } } } else { // Each key names an entry to recurse into and prune from within. foreach ( $spec as $name => $subspec ) { if ( $current_is_list ) { foreach ( $current as $index => $member ) { if ( $this->list_item_identity( $member ) === (string) $name ) { $current[ $index ] = $this->remove_properties( $member, $subspec ); break; } } } elseif ( array_key_exists( $name, $current ) ) { $current[ $name ] = $this->remove_properties( $current[ $name ], $subspec ); } } } // Renumber so a list from which a member was removed keeps sequential keys. return $current_is_list ? array_values( $current ) : $current; } /** * Removes the first list member matching an identity, leaving the rest. * * @since 7.1.0 * * @param array $members The current list. * @param mixed $identity The identity of the member to remove. * @return array The list with the matching member removed, if any. */ private function remove_list_member( array $members, $identity ) { foreach ( $members as $index => $member ) { if ( $this->list_item_identity( $member ) === (string) $identity ) { unset( $members[ $index ] ); break; } } return $members; } /** * Merges an incoming list into the current one by member identity. * * A member of the incoming list whose identity matches one already present * merges into it in place, keeping its position; an unmatched member is * appended to the end, except a literal `null`, which carries no identity * and holds nothing to merge and so is dropped. An appended member has no * existing leaf for a nested `null` to delete (the same rationale as set()), * so its nulls are stripped rather than stored. A matched member's contents * merge recursively with the same rules (merge_properties), so the * identity-aware merge applies at * any nesting level: each key named by the patch is substituted while the * others are left intact, and a list nested inside a member merges by * identity just like the list it lives in. * * @since 7.1.0 * * @param array $current The current list. * @param array $incoming The incoming list. * @return array The merged list. */ private function merge_list_by_identity( array $current, array $incoming ) { $result = $current; foreach ( $incoming as $item ) { // A null member carries no identity and holds nothing to merge, // so it is dropped rather than appended as a literal null. if ( null === $item ) { continue; } $identity = $this->list_item_identity( $item ); // Find the index of the existing member with the same identity, if any. // If there's none, append the incoming member to the end of the list. $index = null; if ( null !== $identity ) { foreach ( $result as $i => $existing ) { if ( $this->list_item_identity( $existing ) === $identity ) { $index = $i; break; } } } if ( null === $index ) { // An appended member has no existing leaf for a nested null to // delete, so nulls are dropped rather than stored. $result[] = $this->strip_nulls( $item ); continue; } // Otherwise, merge the incoming member into the existing one in place. $result[ $index ] = $this->merge_properties( $result[ $index ], $item, false ); } return $result; } /** * Resolves the identity used to match a list member against another. * * The identity is simply the member's value cast to a string, regardless of * which key carries it: a bare scalar is its own identity, and a map is * identified by the value of the first of the well-known identity keys * (`id`, `slug`, `field`) it carries. Because the key is not part of * the identity, a bare field like `'f3'` matches any map carrying that * value, whether it appears as `array( 'id' => 'f3' )`, * `array( 'slug' => 'f3' )`, and so on — this lets the same shorthand target * lists keyed by different fields. Casting to string keeps numeric * identities matching whether they arrive as an int or a string. Anything * else (e.g. a nested list) has no identity and never matches, so it is * always appended. * * @since 7.1.0 * * @param mixed $item The list member. * @return string|null The identity, or null when the member has none. */ private function list_item_identity( $item ) { if ( is_scalar( $item ) ) { return (string) $item; } if ( is_array( $item ) && ! array_is_list( $item ) ) { foreach ( array( 'id', 'slug', 'field' ) as $key ) { if ( isset( $item[ $key ] ) && is_scalar( $item[ $key ] ) ) { return (string) $item[ $key ]; } } } return null; } }