WordPress/wp-includes
Sergey Biryukov ce8fb38739 Code Modernization: Fix null to non-nullable deprecations in `wp_xmlrpc_server::_insert_post()`.
The `wp_xmlrpc_server::_insert_post()` method creates a new post via `wp_insert_post()` or updates an existing one via `wp_update_post()`, which subsequently calls `wp_insert_post()`. However, the default/fallback values used in the function were not in line with the default/fallback values used in the `wp_insert_post()` function.

The `wp_insert_post()` function does a `wp_parse_args()` (array merge) of the received arguments with the defaults. If any of the received arguments are `null`, this would overwrite the default value, as seen in [https://3v4l.org/bfVlv array_merge() example], and lead to "passing null to non-nullable" deprecation notices on PHP 8.1 for certain arguments.

Unfortunately, the conditional logic within the `wp_xmlrpc_server::_insert_post()` function itself often uses an `isset()` to trigger certain code blocks, so syncing the defaults with those used in the `wp_insert_post()` function was not an option.

This commit:
* Updates the default/fallback values in the `$defaults` array only for those values where this would not lead to a change in the behavior of the function.
* Adds a safeguard function, filtering out all remaining `null` values from the `$post_data` array before it is passed on to the `wp_insert_post()` or `wp_update_post()` functions. Removing those values is safe as this means that these array keys will now:
 * either be set to the default/fallback value as defined in `wp_insert_post()`.
 * or not be set and for those values which don't have a default/fallback value in `wp_insert_post()`, the function does an `! empty()` or `isset()` check anyway and those array keys not being defined means that the result of those checks will remain the same.

Includes
* Removing a couple of conditions which are now redundant.
* Removing an `expectDeprecation()` in the `Tests_Date_XMLRPC` test class, which is now no longer needed.

Fixes various errors along the lines of:
{{{
36) Tests_XMLRPC_wp_newPost::test_no_content
json_decode(): Passing null to parameter #1 ($json) of type string is deprecated

/var/www/src/wp-includes/kses.php:2074
/var/www/src/wp-includes/class-wp-hook.php:307
/var/www/src/wp-includes/plugin.php:205
/var/www/src/wp-includes/post.php:2835
/var/www/src/wp-includes/post.php:2720
/var/www/src/wp-includes/post.php:4066
/var/www/src/wp-includes/class-wp-xmlrpc-server.php:1683
/var/www/src/wp-includes/class-wp-xmlrpc-server.php:1347
/var/www/tests/phpunit/tests/xmlrpc/wp/newPost.php:25
/var/www/vendor/bin/phpunit:123
}}}

Follow-up to [1563], [4793], [7900], [16824], [19848], [19873], [20632], [40677], [51968], [54320].

Props jrf.
See #55656.
Built from https://develop.svn.wordpress.org/trunk@54321


git-svn-id: http://core.svn.wordpress.org/trunk@53880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-27 02:18:10 +00:00
..
ID3 External Libraries: Update getID3 to version 1.9.21. 2021-11-26 03:06:03 +00:00
IXR
PHPMailer External Libraries: Upgrade PHPMailer to version 6.6.4. 2022-08-22 12:26:12 +00:00
Requests HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
SimplePie External Libraries: Update the SimplePie library to version 1.5.7. 2021-12-20 19:33:00 +00:00
Text Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
assets Build/Test Tools: Test building WordPress to run from `src` first. 2022-09-23 20:04:13 +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 Docs: Remove a change that needs to instead be applied in the Gutenberg repo. 2022-09-21 20:57:12 +00:00
certificates
css Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
customize Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
fonts
images Coding Standards: Revert accidental image changes in [52171]. 2021-11-16 00:04:01 +00:00
js Build/Test Tools: Test building WordPress to run from `src` first. 2022-09-23 20:04:13 +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
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
rest-api Code Modernization: Fix null to non-nullable deprecation in `WP_REST_Users_Controller::update_item()`. 2022-09-26 21:46:09 +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: Backport Style Engine API functions, classes and tests. 2022-09-14 12:48:16 +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: Make template names and descriptions dynamic. 2022-09-21 15:45:12 +00:00
block-template.php Shortcodes: Revert recent `apply_shortcodes` and `do_shortcode` changes. 2022-09-26 22:43:10 +00:00
blocks.php General: Remove `file_exists()` checks after calling `realpath()`. 2022-09-26 13:07:14 +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: Introduce `is_*_admin_screen()` aliases for `is_*_admin()` function family. 2022-09-20 15:45:49 +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-IXR.php
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-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 HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
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 Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +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 HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
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 Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +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 Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +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 Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +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 Fix: Revert [54305]. 2022-09-26 10:17:11 +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 Shortcodes: Revert default filter callback changes from `apply_shortcodes` to `do_shortcode`. 2022-09-21 15:06:12 +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 Feeds: Remove reference to `wp-atom.php` in Atom feeds `xml:base` attribute. 2021-11-29 09:52:00 +00:00
feed-rdf.php
feed-rss.php
feed-rss2-comments.php
feed-rss2.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 Docs: Add missing description for `$pagenow` global in various functions. 2022-04-04 18:26:06 +00:00
functions.wp-styles.php Script Loader: Document `path` as an accepted value for `$key` in `wp_style_add_data()`. 2021-11-19 15:14:00 +00:00
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 Coding Standards: Various alignment fixes from `composer format`. 2022-09-19 19:51:09 +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: Introduce `is_*_admin_screen()` aliases for `is_*_admin()` function family. 2022-09-20 15:45:49 +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 Docs: Various improvements and corrections to inline docs. 2022-09-20 20:32:09 +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 Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
revision.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
rewrite.php Rewrite rules: Prevent malformed date requests throwing notices. 2022-08-07 23:05: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 Build: Improve how combined assets are generated 2022-09-23 08:27:12 +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 Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:30:05 +00:00
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: Make `wp_list_authors()` and `wp_list_users()` filterable. 2022-09-20 16:26: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: Fix null to non-nullable deprecations in `wp_xmlrpc_server::_insert_post()`. 2022-09-27 02:18: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