WordPress/wp-includes
Sergey Biryukov 446d463a19 Code Modernization: Check the return type of parse_url() in url_to_postid().
As per the PHP manual:
> If the `component` parameter is omitted, an associative array is returned.
> If the `component` parameter is specified, `parse_url()` returns a string (or an int, in the case of `PHP_URL_PORT`) instead of an array. If the requested component doesn't exist within the given URL, `null` will be returned.

Reference: [https://www.php.net/manual/en/function.parse-url.php#refsect1-function.parse-url-returnvalues PHP Manual: parse_url(): Return Values]

In this case, `parse_url()` is called with `PHP_URL_HOST` as `$component`, which returns `null` if the URL only has a path. The return value of `parse_url()` was then passed to `str_replace()`, leading to a notice on PHP 8.1:
{{{
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
}}}

Adding validation for the return type value of `parse_url()` prevents that.

This commit addresses a few errors in the test suite along the lines of:
{{{
5) Tests_Rewrite::test_url_to_postid_home_has_path
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

/var/www/src/wp-includes/rewrite.php:503
/var/www/tests/phpunit/tests/rewrite.php:271
/var/www/vendor/bin/phpunit:123
}}}

Includes adding a dedicated unit test for a URL that only has a path.

Follow-up to [41786], [51606], [51622], [51626], [51629], [51630], [52799].

Props jrf, aristath, poena, justinahinon, SergeyBiryukov.
See #55656.
Built from https://develop.svn.wordpress.org/trunk@54364


git-svn-id: http://core.svn.wordpress.org/trunk@53923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-01 03:25:10 +00:00
..
assets Editor: Update packages for 6.1 Beta 2. 2022-09-27 17:32:52 +00:00
block-patterns REST API: Bring new endpoints for Block Patterns from Gutenberg plugin 2022-04-12 09:26:16 +00:00
block-supports Editor: Fix spacing property generation in flow layout type. 2022-09-26 14:58:12 +00:00
blocks Editor: Update packages for 6.1 Beta 2. 2022-09-27 17:32:52 +00:00
certificates
css Editor: Update packages for 6.1 Beta 2. 2022-09-27 17:32:52 +00:00
customize Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
fonts
ID3
images
IXR
js External Libraries: Update MediaElement.js to version 4.2.17. 2022-09-29 14:21:11 +00:00
php-compat Docs: Adjust some deprecated function DocBlocks per the [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#1-2-deprecated-functions documentation standards]. 2022-04-06 15:20:06 +00:00
PHPMailer External Libraries: Upgrade PHPMailer to version 6.6.4. 2022-08-22 12:26:12 +00:00
pomo i18n: Ensure empty strings are consistently translated to ''. 2022-09-26 20:56:10 +00:00
random_compat External Libraries: Update random_compat to version 2.0.21. 2022-02-16 21:19:04 +00:00
Requests
rest-api Editor: Remove leading whitespace from some translated strings. 2022-09-29 17:54:09 +00:00
SimplePie External Libraries: Update the SimplePie library to version 1.5.7. 2021-12-20 19:33:00 +00:00
sitemaps Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
sodium_compat Upgrade/Install: Update sodium_compat to v1.19.0. 2022-09-26 14:00:10 +00:00
style-engine Editor: Remove deprecated callable in WP_Style_Engine class. 2022-09-29 18:05:09 +00:00
Text Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
theme-compat Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
widgets Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
admin-bar.php Taxonomy: Introduce the is_term_publicly_viewable() function. 2022-08-13 22:44:09 +00:00
atomlib.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/atomlib.php. 2022-04-21 11:24:17 +00:00
author-template.php Users: Make wp_list_authors() and wp_list_users() filterable. 2022-09-20 16:26:10 +00:00
block-editor.php Block Editor: Remove repetitive calls to file_get_contents() in block editor settings. 2022-09-23 14:00:09 +00:00
block-i18n.json
block-patterns.php Editor: Add post types property to wp-rest-block-patterns-controller.php. 2022-09-20 16:29:12 +00:00
block-template-utils.php Editor: Revert dynamic template names and descriptions. 2022-09-27 16:33:10 +00:00
block-template.php Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
blocks.php Editor: Correctly load RTL stylesheets in register_block_style_handle(). 2022-09-27 15:43:09 +00:00
bookmark-template.php Docs: Use third-person singular verbs for function descriptions in Bookmark related files, as per docblock standards. 2022-06-23 22:57:12 +00:00
bookmark.php General: Ensure bookmark query limits are numeric. 2022-08-30 15:17:08 +00:00
cache-compat.php Cache API: Make the placement of wp_cache_flush_group() more consistent. 2022-07-23 14:58:12 +00:00
cache.php Cache API: Make the placement of wp_cache_flush_group() more consistent. 2022-07-23 14:58:12 +00:00
canonical.php Canonical: Include all public status in 404 redirects. 2022-04-01 03:25:01 +00:00
capabilities.php Bootstrap/Load: Revert the is_*_admin_screen() aliases for is_*_admin() function family. 2022-09-27 16:31:10 +00:00
category-template.php Taxonomy: Associate field descriptions with fields. 2022-08-19 23:06:09 +00:00
category.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
class-feed.php
class-http.php General: Use WPINC as a shorter reference to wp-includes in some files. 2022-06-17 11:20:13 +00:00
class-IXR.php
class-json.php Coding Standards: Use more consistent formatting in wp-includes/class-json.php. 2022-08-31 13:41:08 +00:00
class-oembed.php General: Use WPINC as a shorter reference to wp-includes in some files. 2022-06-17 11:20:13 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php
class-simplepie.php External Libraries: Update the SimplePie library to version 1.5.8. 2021-12-24 18:06:06 +00:00
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-category.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-comment.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-nav-menu.php Docs: Clarify documentation for the nav_menu_item_id filter. 2022-09-15 12:32:08 +00:00
class-walker-page-dropdown.php Coding standards: Remove extra spaces in docblocks of the Walker_PageDropdown class. 2022-05-01 22:01:10 +00:00
class-walker-page.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-wp-admin-bar.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-ajax-response.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-application-passwords.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-editor-context.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-list.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-parser.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
class-wp-block-pattern-categories-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-patterns-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-styles-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-supports.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-template.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-type-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-type.php Coding Standards: Various alignment fixes from composer format. 2022-09-19 19:51:09 +00:00
class-wp-block.php Blocks: Allow registering multiple items for all supported asset types 2022-09-14 10:52:08 +00:00
class-wp-comment-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-comment.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-control.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-manager.php Code Modernization: Pass correct value to parse_url() in WP_Customize_Manager::get_return_url(). 2022-09-12 21:50:14 +00:00
class-wp-customize-nav-menus.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-panel.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-section.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-setting.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-widgets.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-date-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-dependencies.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
class-wp-dependency.php I18N: Use correct default value for JavaScript translations path. 2022-09-28 22:19:10 +00:00
class-wp-editor.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-embed.php Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
class-wp-error.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-fatal-error-handler.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-feed-cache-transient.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-feed-cache.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-hook.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-cookie.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-curl.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-encoding.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-ixr-client.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-proxy.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-requests-hooks.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-requests-response.php
class-wp-http-response.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-streams.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-image-editor-gd.php Media: Revert WebP generation. 2022-09-19 22:53:10 +00:00
class-wp-image-editor-imagick.php Media: Revert WebP generation. 2022-09-19 22:53:10 +00:00
class-wp-image-editor.php Media: Respect EXIF Rotations. 2022-09-20 16:59:10 +00:00
class-wp-list-util.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-locale-switcher.php Docs: Increase the specificity of various property documentation. 2022-09-26 22:10:16 +00:00
class-wp-locale.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-matchesmapregex.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-meta-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-metadata-lazyloader.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-network-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-network.php Networks and Sites: Store main site id of a network in network options. 2022-09-20 14:26:10 +00:00
class-wp-object-cache.php Docs: Increase the specificity of various property documentation. 2022-09-26 22:10:16 +00:00
class-wp-oembed-controller.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-oembed.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-paused-extensions-storage.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-post-type.php Docs: Increase the specificity of various property documentation. 2022-09-26 22:10:16 +00:00
class-wp-post.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-query.php Query: Save excessive cache add and sets in WP_Query. 2022-09-29 10:09:11 +00:00
class-wp-recovery-mode-cookie-service.php Security: Salting functions: translate the phrase "put your unique phrase here". 2022-09-20 11:57:20 +00:00
class-wp-recovery-mode-email-service.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-recovery-mode-key-service.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-recovery-mode-link-service.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-recovery-mode.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-rewrite.php Docs: Increase the specificity of various property documentation. 2022-09-26 22:10:16 +00:00
class-wp-role.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-roles.php Role/Capability: Add a new update_role function. 2022-09-19 20:49:10 +00:00
class-wp-scripts.php I18N: Use correct default value for JavaScript translations path. 2022-09-28 22:19:10 +00:00
class-wp-session-tokens.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-simplepie-file.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-simplepie-sanitize-kses.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-site-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-site.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-styles.php Script Loader: Prevent double space between attributes in WP_Styles class. 2022-09-28 14:59:10 +00:00
class-wp-tax-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-taxonomy.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-term-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-term.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-text-diff-renderer-inline.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-text-diff-renderer-table.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-textdomain-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-theme-json-data.php Editor: Backport hooks to filter theme.json data from Gutenberg to 6.1. 2022-09-20 13:13:21 +00:00
class-wp-theme-json-resolver.php Coding Standards: Correct alignment in WP_Theme_JSON_Resolver::get_core_data(). 2022-09-23 21:31:10 +00:00
class-wp-theme-json-schema.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-theme-json.php Editor: Cast theme.json values to string on theme export. 2022-09-30 14:48:12 +00:00
class-wp-theme.php Themes: Import Twenty Twenty-Three is now the default theme. 2022-09-20 01:36:09 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-user-request.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-user.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-walker.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-widget-factory.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-widget.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-xmlrpc-server.php Code Modernization: Fix null to non-nullable deprecations in wp_xmlrpc_server::_insert_post(). 2022-09-27 02:18:10 +00:00
class-wp.php Bootstrap/Load: Send HTTP headers after querying posts in WP::main(). 2022-09-20 13:12:10 +00:00
class-wpdb.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
class.wp-dependencies.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
class.wp-scripts.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
class.wp-styles.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
comment-template.php Code Modernization: Replace deprecated string interpolation patterns. 2022-09-12 17:52:08 +00:00
comment.php Cache API, Docs: Remove private delegation from cache priming functions. 2022-08-26 01:03:14 +00:00
compat.php Code Modernization: Rename parameters to match native PHP functions in wp-includes/compat.php. 2022-05-08 00:29:14 +00:00
cron.php Docs: Various improvements and corrections to inline docs. 2022-09-20 20:32:09 +00:00
date.php General: Use WPINC as a shorter reference to wp-includes in some files. 2022-06-17 11:20:13 +00:00
default-constants.php Themes: Import Twenty Twenty-Three is now the default theme. 2022-09-20 01:36:09 +00:00
default-filters.php Editor: Reintroduce styles that were removed for classic themes. 2022-09-29 18:55:10 +00:00
default-widgets.php
deprecated.php Network and Sites: Move global_terms_enabled() to its proper final resting place. 2022-09-21 19:48:13 +00:00
embed-template.php General: Use WPINC as a shorter reference to wp-includes in some files. 2022-06-17 11:20:13 +00:00
embed.php Embeds: Fix missing labels and duplicate IDs. 2022-08-19 22:06:09 +00:00
error-protection.php Docs: Corrections and improvements to docblocks for function and hooks relating to fatal error handling. 2022-04-29 19:17:11 +00:00
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php Docs: Use third-person singular verbs for function descriptions in the Feed API, as per docblock standards. 2022-06-20 21:46:16 +00:00
formatting.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
functions.php General: Remove file_exists() checks after calling realpath(). 2022-09-26 13:07:14 +00:00
functions.wp-scripts.php I18N: Use correct default value for JavaScript translations path. 2022-09-28 22:19:10 +00:00
functions.wp-styles.php
general-template.php Docs: Fix prev_text and next_text parameters type in paginate_links(). 2022-09-22 09:26:15 +00:00
global-styles-and-settings.php Editor: Backport foundation for Layout block support refactor (part 1). 2022-09-14 18:44:09 +00:00
http.php Docs: Correct @return value for wp_get_http_headers(). 2022-09-14 13:08:14 +00:00
https-detection.php Docs: Miscellaneous inline documentation improvements. 2022-08-11 14:11:08 +00:00
https-migration.php
kses.php Docs: Clarify the $allowed_protocols default value in various KSES functions. 2022-09-15 13:29:13 +00:00
l10n.php I18N: Use correct default value for JavaScript translations path. 2022-09-28 22:19:10 +00:00
link-template.php General: Add a new filter for the_posts_pagination_args. 2022-09-13 18:05:09 +00:00
load.php Bootstrap/Load: Revert the is_*_admin_screen() aliases for is_*_admin() function family. 2022-09-27 16:31:10 +00:00
locale.php
media-template.php Media: Change alt attribute field to textarea in media library. 2022-09-20 04:02:10 +00:00
media.php Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
meta.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
ms-blogs.php Networks and Sites: Use metadata api in `*_network_options functions. 2022-09-06 11:28:13 +00:00
ms-default-constants.php I18N: Remove code from a translatable string in wp-includes/ms-default-constants.php. 2022-07-14 13:35:13 +00:00
ms-default-filters.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
ms-deprecated.php Network and Sites: Move global_terms_enabled() to its proper final resting place. 2022-09-21 19:48:13 +00:00
ms-files.php
ms-functions.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
ms-load.php Database: Use generic references to a database server in ms_not_installed(). 2022-05-13 12:21:13 +00:00
ms-network.php Networks and Sites: Use metadata api in `*_network_options functions. 2022-09-06 11:28:13 +00:00
ms-settings.php
ms-site.php Cache API, Docs: Remove private delegation from cache priming functions. 2022-08-26 01:03:14 +00:00
nav-menu-template.php Coding Standards: Rename $r variable to $args for clarity in walk_nav_menu_tree(). 2022-02-07 14:01:05 +00:00
nav-menu.php REST API: Some documentation and test improvements for update_menu_item_cache(): 2022-06-15 13:37:10 +00:00
option.php Options, Meta APIs: Prevent excessive notoptions key lookups. 2022-09-28 13:44:15 +00:00
pluggable-deprecated.php
pluggable.php Docs: Updates and corrections to various inline docs added in 6.1. 2022-09-21 20:24:12 +00:00
plugin.php Docs: Improve description for doing_filter() and doing_action(). 2022-08-01 11:15:14 +00:00
post-formats.php
post-template.php Docs: Updates and corrections to various inline docs added in 6.1. 2022-09-21 20:24:12 +00:00
post-thumbnail-template.php Docs: Misc. fixes in wp-includes/post-template.php and wp-includes/post-thumbnail-template.php. 2022-03-15 15:22:05 +00:00
post.php Code Modernization: Fix null to non-nullable deprecations in wp_xmlrpc_server::mw_newPost(). 2022-09-27 02:00:09 +00:00
query.php Posts, Post Types: Add caching to _find_post_by_old_slug and _find_post_by_old_date functions. 2022-06-21 13:34:13 +00:00
registration-functions.php
registration.php
rest-api.php I18N: Move code out of a translatable string in register_rest_route(). 2022-09-28 14:04:11 +00:00
revision.php Docs: Various docblock fixes in wp-includes/revision.php, as per documentation standards. 2022-09-28 14:47:12 +00:00
rewrite.php Code Modernization: Check the return type of parse_url() in url_to_postid(). 2022-10-01 03:25:10 +00:00
robots-template.php Docs: Adjust DocBlock formatting for wp_robots_*() and related functions. 2022-04-06 15:33:03 +00:00
rss-functions.php
rss.php Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
script-loader.php Docs: Add @since to wp_enqueue_classic_theme_styles() docblock. 2022-09-29 19:15:10 +00:00
session.php
shortcodes.php Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
sitemaps.php
spl-autoload-compat.php
style-engine.php Editor: Backport Style Engine API functions, classes and tests. 2022-09-14 12:48:16 +00:00
taxonomy.php Taxonomy: Standardise the format used to describe arguments passed to actions and filters inside wp_insert_term() and wp_update_term(). 2022-09-20 18:53:09 +00:00
template-canvas.php
template-loader.php
template.php Themes: Relocate actions firing prior to and after template loading. 2022-09-21 01:09:10 +00:00
theme-i18n.json Editor: Introduce spacing presets in global style properties. 2022-09-21 11:43:13 +00:00
theme-templates.php Docs: Remove @return void from various DocBlocks. 2022-05-02 13:13:08 +00:00
theme.json Editor: Backport foundation for Layout block support refactor (part 1). 2022-09-14 18:44:09 +00:00
theme.php Themes: Introduces block-based template parts for Classic themes. 2022-09-15 12:20:09 +00:00
update.php Docs: Use typed array notation for the $locales parameter in plugin update filters. 2022-09-22 11:13:14 +00:00
user.php Users: Correctly pass the context property for persisted preferences. 2022-09-27 15:23:10 +00:00
vars.php Bootstrap/Load: Avoid a PHP warning when setting the $pagenow global in wp-includes/vars.php. 2022-04-27 13:47:11 +00:00
version.php Code Modernization: Check the return type of parse_url() in url_to_postid(). 2022-10-01 03:25:10 +00:00
widgets.php General: Replace all esc_url_raw() calls in core with sanitize_url(). 2022-06-01 18:14:10 +00:00
wlwmanifest.xml
wp-db.php Coding Standards: Use __DIR__ instead of ABSPATH in wp-db.php. 2022-07-21 22:45:11 +00:00
wp-diff.php