WordPress/wp-includes
TimothyBlynJacobs 77b474c905 REST API: Make multi-typed schemas more robust.
A multi-type schema is a schema where the `type` keyword is an array of possible types instead of a single type. For instance, `[ 'object', 'string' ]` would allow objects or string values.

In [46249] basic support for these schemas was introduced. The validator would loop over each schema type trying to find a version that matched. This worked for valid values, but for invalid values it provided unhelpful error messages. The sanitizer also had its utility restricted.

In this commit, the validators and sanitizers will first determine the best type of the passed value and then apply the schema with that set type. In the case that a value could match multiple types, the schema of the first matching type will be used.

To maintain backward compatibility, if unsupported schema types are used, the value will always pass validation. A doing it wrong notice is issued in this case.

Fixes #50300.
Props pentatonicfunk, dlh, TimothyBlynJacobs.

Built from https://develop.svn.wordpress.org/trunk@48306


git-svn-id: http://core.svn.wordpress.org/trunk@48075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-05 00:15:05 +00:00
..
assets Chore: Update package-lock.json file 2020-06-29 11:50:29 +00:00
blocks Editor: Move core blocks registration to init hook 2020-07-02 17:22:03 +00:00
certificates
css Accessibility: Media: Add a "Copy URL" button to the attachment File URL fields. 2020-06-30 13:16:04 +00:00
customize Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:18:11 +00:00
fonts
ID3 External Libraries: Update getID3 to version 1.9.20. 2020-07-02 15:48:04 +00:00
images Customize: Move the WordPress logo with a white background to the wp-includes directory. 2020-05-21 09:10:12 +00:00
IXR Code Modernization: Introduce the spread operator in WP_HTTP_IXR_Client. 2020-06-30 19:50:04 +00:00
js Media: Show an error message when a .heic file is uploaded that this type of files cannot be displayed in a web browser and suggesting to convert to JPEG. The message is shown by using filters, plugins that want to handle uploading of .heic files can remove it. 2020-07-03 23:15:03 +00:00
PHPMailer General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-15 14:56:07 +00:00
pomo Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
random_compat
Requests General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
rest-api REST API: Introduce endpoint for editing images. 2020-07-04 04:15:05 +00:00
SimplePie External Libraries: Update the SimplePie library to the latest version (1.5.5). 2020-05-01 14:26:07 +00:00
sitemaps Sitemaps: Do not unnecessarily call WP_Query::get_posts() in posts provider. 2020-07-03 12:03:01 +00:00
sodium_compat General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
Text General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-15 14:56:07 +00:00
theme-compat Bundled Themes: Use HTTPS for XHTML Friends Network URL. 2020-07-03 23:42:01 +00:00
widgets Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:18:11 +00:00
admin-bar.php Customize: Do not allow changesets to be deleted when someone is editing them. 2020-06-29 10:33:08 +00:00
atomlib.php
author-template.php Docs: Capitalize "ID", when referring to a user ID, term ID, etc. in a more consistent way. 2020-06-28 14:09:04 +00:00
blocks.php Editor: More strict checks for globals in render_block 2020-07-01 06:08:06 +00:00
bookmark-template.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
bookmark.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
cache-compat.php Docs: Add missing documentation for the $group parameter of WP_Object_Cache::get_multiple(). 2020-06-10 09:57:09 +00:00
cache.php Docs: Add missing documentation for the $group parameter of WP_Object_Cache::get_multiple(). 2020-06-10 09:57:09 +00:00
canonical.php Docs: Standardize on "Returning a value from the filter" vs. "Passing a value to the filter". 2020-06-26 18:49:09 +00:00
capabilities.php Coding Standards: Reformat some long apply_filters_deprecated() and do_action_deprecated() calls for better readability. 2020-06-25 12:06:07 +00:00
category-template.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
category.php Docs: Correct documentation for the filter parameter of get_category() and get_tag(). 2020-06-30 00:04:05 +00:00
class-feed.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-http.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
class-IXR.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-json.php Docs: Correct @see references for PHP 4 constructors in wp-includes/class-json.php. 2019-11-02 20:13:02 +00:00
class-oembed.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-phpass.php Docs: Update URLs in some @link tags and switch them to HTTPS. 2019-11-01 14:57:02 +00:00
class-phpmailer.php External Libraries: Add class aliases for phpmailerException and SMTP to deprecated files to account for the new namespace. 2020-06-12 21:42:09 +00:00
class-pop3.php General: More PHP compatibility adjustments. 2020-05-01 20:12:06 +00:00
class-requests.php General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-03 17:40:12 +00:00
class-simplepie.php General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-03 17:40:12 +00:00
class-smtp.php External Libraries: Add class aliases for phpmailerException and SMTP to deprecated files to account for the new namespace. 2020-06-12 21:42:09 +00:00
class-snoopy.php General: Fix various issues flagged by the PHPCompatibilityWP PHPCS ruleset. 2020-05-01 19:07:09 +00:00
class-walker-category-dropdown.php
class-walker-category.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-walker-comment.php Comments: Rename Walker_Comment::comment_text() to ::filter_comment_text() for clarity. 2020-06-02 21:45:10 +00:00
class-walker-nav-menu.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-walker-page-dropdown.php
class-walker-page.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-admin-bar.php Administration: Remove any CSS related to Internet Explorer versions 6 – 10. 2020-05-06 20:15:07 +00:00
class-wp-ajax-response.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-block-list.php Editor: Introduce WP_Block and WP_Block_List classes 2020-06-25 05:16:11 +00:00
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php Block Editor: Add the Block Patterns API. 2020-06-24 12:59:11 +00:00
class-wp-block-patterns-registry.php Block Editor: Add the Block Patterns API. 2020-06-24 12:59:11 +00:00
class-wp-block-styles-registry.php Docs: Miscellaneous DocBlock corrections. 2020-06-28 11:53:04 +00:00
class-wp-block-type-registry.php Docs: Misc docblock corrections and improvements. 2020-05-03 19:38:08 +00:00
class-wp-block-type.php Docs: Spell "falsey" in a consistent way. 2020-07-02 11:30:02 +00:00
class-wp-block.php Editor: Introduce block context 2020-06-30 11:04:04 +00:00
class-wp-comment-query.php Docs: Spell "falsey" in a consistent way. 2020-07-02 11:30:02 +00:00
class-wp-comment.php Comments: Use comment instead of an empty string for the comment_type DB field value in comments table. 2020-04-17 19:35:06 +00:00
class-wp-customize-control.php Docs: Add a reference to WP_Customize_Setting::__construct() for information on accepted arguments in WP_Customize_Manager::add_setting(). 2020-02-27 20:09:06 +00:00
class-wp-customize-manager.php Customize: Do not allow changesets to be deleted when someone is editing them. 2020-06-29 10:33:08 +00:00
class-wp-customize-nav-menus.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-customize-panel.php Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:18:11 +00:00
class-wp-customize-section.php Docs: Add a reference to WP_Customize_Section::__construct() for information on accepted arguments in WP_Customize_Manager::add_section(). 2020-02-27 20:29:06 +00:00
class-wp-customize-setting.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
class-wp-customize-widgets.php Customize: Correct the check for rendered widgets in WP_Customize_Widgets::is_widget_rendered(). 2020-07-04 19:35:01 +00:00
class-wp-date-query.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
class-wp-dependency.php Docs: Use more specific type in description for _WP_Dependency::$deps. 2020-03-01 16:24:04 +00:00
class-wp-editor.php Docs: Remove unused @global declarations from _WP_Editors::print_tinymce_scripts(). 2020-05-27 19:48:11 +00:00
class-wp-embed.php Embeds: Ensure that classic embed support works in the block editor. 2020-06-23 06:08:08 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php Upgrade/Install: Rename wp_in_maintenance_mode() to wp_is_maintenance_mode(), for consistency with wp_is_recovery_mode(). 2020-05-31 19:54:24 +00:00
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php Coding Standards: Use Yoda conditions where appropriate. 2020-02-09 16:55:09 +00:00
class-wp-http-cookie.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-http-curl.php Coding Standards: Use strict type check for in_array() and array_search(). 2020-04-09 15:43:10 +00:00
class-wp-http-encoding.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
class-wp-http-ixr-client.php Code Modernization: Introduce the spread operator in WP_HTTP_IXR_Client. 2020-06-30 19:50:04 +00:00
class-wp-http-proxy.php Docs: Miscellaneous docblock improvements. 2020-06-26 18:40:04 +00:00
class-wp-http-requests-hooks.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-http-requests-response.php Docs: Fix and improve inline documentation for the HTTP API. 2019-10-12 18:05:04 +00:00
class-wp-http-response.php
class-wp-http-streams.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-image-editor-gd.php Docs: Remove extra spaces from @param tags. 2020-06-20 12:58:10 +00:00
class-wp-image-editor-imagick.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
class-wp-image-editor.php Docs: Remove extra spaces from @param tags. 2020-06-20 12:58:10 +00:00
class-wp-list-util.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-locale-switcher.php
class-wp-locale.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-matchesmapregex.php Docs: Remove extra spaces from @param tags. 2020-06-20 12:58:10 +00:00
class-wp-meta-query.php Docs: Remove extra spaces from @param tags. 2020-06-20 12:58:10 +00:00
class-wp-metadata-lazyloader.php Text Changes: Add missing periods to some error messages, for consistency. 2020-02-01 20:32:05 +00:00
class-wp-network-query.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
class-wp-network.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-object-cache.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
class-wp-oembed-controller.php Embeds: Ensure that classic embed support works in the block editor. 2020-06-23 06:08:08 +00:00
class-wp-oembed.php Docs: Standardize on "Returning a value from the filter" vs. "Passing a value to the filter". 2020-06-26 18:49:09 +00:00
class-wp-paused-extensions-storage.php Docs: Remove an empty line between @param and @return tags, per the documentation standards. 2020-06-20 11:18:09 +00:00
class-wp-post-type.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
class-wp-post.php
class-wp-query.php Posts, Post Types: Avoid a PHP warning when get_the_content() is called outside of the loop. 2020-06-21 10:36:07 +00:00
class-wp-recovery-mode-cookie-service.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-recovery-mode-email-service.php Docs: Remove an empty line between @param and @return tags, per the documentation standards. 2020-06-20 11:18:09 +00:00
class-wp-recovery-mode-key-service.php Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:55:12 +00:00
class-wp-recovery-mode-link-service.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-recovery-mode.php Docs: Remove an empty line between @param and @return tags, per the documentation standards. 2020-06-20 11:18:09 +00:00
class-wp-rewrite.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
class-wp-role.php Docs: Switch more docs over to typed array notation, plus some fixes. 2019-10-26 21:09:04 +00:00
class-wp-roles.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
class-wp-session-tokens.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-simplepie-file.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-simplepie-sanitize-kses.php Coding Standards: Use Yoda conditions where appropriate. 2020-02-09 16:55:09 +00:00
class-wp-site-query.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
class-wp-site.php
class-wp-tax-query.php Docs: Remove extra spaces from @param tags. 2020-06-20 12:58:10 +00:00
class-wp-taxonomy.php REST API: Link to the REST route for the currently queried resource. 2020-07-02 05:57:01 +00:00
class-wp-term-query.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:02:11 +00:00
class-wp-theme.php I18N: Restore the "Error:" prefix for error messages. 2020-06-21 14:00:09 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
class-wp-user-request.php Docs: Add missing @since tags for WP_User_Request properties. 2020-03-23 20:20:09 +00:00
class-wp-user.php Coding Standards: Use strict comparison for count() calls. 2020-05-23 11:38:08 +00:00
class-wp-walker.php Coding Standards: Use Yoda conditions where appropriate. 2020-02-09 16:55:09 +00:00
class-wp-widget-factory.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget.php Docs: Fix typo in WP_Widget::__construct() and ::WP_Widget() DocBlocks. 2020-06-09 15:37:10 +00:00
class-wp-xmlrpc-server.php Comments: Make wp_update_comment() return a WP_Error object for a canceled update, if $wp_error parameter is true. 2020-06-29 23:42:03 +00:00
class-wp.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
class.wp-dependencies.php Script Loader: Add the $group parameter to WP_Dependencies::do_item(). 2020-05-06 16:27:12 +00:00
class.wp-scripts.php Script Loader: Add id attributes to script assets. 2020-07-04 16:54:02 +00:00
class.wp-styles.php Script Loader: Add the $group parameter to WP_Dependencies::do_item(). 2020-05-06 16:27:12 +00:00
comment-template.php Comments: Remove wp_get_include_unapproved_comments_argument() for now. 2020-06-23 13:53:08 +00:00
comment.php Comments: Make wp_update_comment() return false instead of 0 for an invalid comment or post ID. 2020-06-30 14:12:04 +00:00
compat.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
cron.php General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-03 17:40:12 +00:00
date.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
default-constants.php Docs: Consistently include an empty line between @since tag and @see, @link, or @global, per the documentation standards. 2020-06-16 21:07:14 +00:00
default-filters.php Media: Show an error message when a .heic file is uploaded that this type of files cannot be displayed in a web browser and suggesting to convert to JPEG. The message is shown by using filters, plugins that want to handle uploading of .heic files can remove it. 2020-07-03 23:15:03 +00:00
default-widgets.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
deprecated.php Docs: Capitalize "ID", when referring to a user ID, term ID, etc. in a more consistent way. 2020-06-28 14:09:04 +00:00
embed-template.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
embed.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
error-protection.php Docs: Remove an empty line between @param and @return tags, per the documentation standards. 2020-06-20 11:18:09 +00:00
feed-atom-comments.php Coding Standards: Use Yoda conditions where appropriate. 2020-02-09 16:55:09 +00:00
feed-atom.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rdf.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss2-comments.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss2.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed.php Docs: Capitalize "ID", when referring to a user ID, term ID, etc. in a more consistent way. 2020-06-28 14:09:04 +00:00
formatting.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
functions.php Media: Add heic extension to wp_get_ext_types(), for consistency with wp_get_mime_types(). 2020-07-04 17:09:01 +00:00
functions.wp-scripts.php Script Loader: Include the script or style handle in _wp_scripts_maybe_doing_it_wrong() message. 2020-06-17 10:16:08 +00:00
functions.wp-styles.php Script Loader: Include the script or style handle in _wp_scripts_maybe_doing_it_wrong() message. 2020-06-17 10:16:08 +00:00
general-template.php Themes: Introduce get_the_archive_title_prefix filter for changing the prefix used for archive titles. 2020-07-04 14:45:01 +00:00
http.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
kses.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
l10n.php I18N: Use underscores instead of dashes and interpolation instead of concatenation in domain-specific gettext hooks, per the coding standards: 2020-06-23 10:02:10 +00:00
link-template.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
load.php Bootstrap/Load: Remove special handling for REQUEST_TIME and REQUEST_TIME_FLOAT server values in wp_magic_quotes(). 2020-06-28 21:09:05 +00:00
locale.php Docs: Add missing @deprecated tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
media-template.php Accessibility: Media: Add a "Copy URL" button to the attachment File URL fields. 2020-06-30 13:16:04 +00:00
media.php Media: Show an error message when a .heic file is uploaded that this type of files cannot be displayed in a web browser and suggesting to convert to JPEG. The message is shown by using filters, plugins that want to handle uploading of .heic files can remove it. 2020-07-03 23:15:03 +00:00
meta.php Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions. 2020-06-29 21:22:09 +00:00
ms-blogs.php Docs: Capitalize "ID", when referring to a user ID, term ID, etc. in a more consistent way. 2020-06-28 14:09:04 +00:00
ms-default-constants.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
ms-default-filters.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
ms-deprecated.php Administration: Remove the xmlns attribute on the <html> tag. 2020-06-22 21:26:16 +00:00
ms-files.php Coding Standards: Use Yoda conditions where appropriate. 2020-02-09 16:55:09 +00:00
ms-functions.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
ms-load.php Networks and Sites: Update the link text for "Debugging a WordPress Network" support article in ms_not_installed(). 2020-06-05 09:13:08 +00:00
ms-network.php Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way. 2020-06-20 12:02:12 +00:00
ms-settings.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
ms-site.php Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions. 2020-06-29 21:22:09 +00:00
nav-menu-template.php Docs: Standardize on "Returning a value from the filter" vs. "Passing a value to the filter". 2020-06-26 18:49:09 +00:00
nav-menu.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
option.php Docs: Synchronize some documentation for functions in wp-includes/option.php. 2020-06-27 16:56:02 +00:00
pluggable-deprecated.php Docs: In various @return tags, list the expected type first, instead of false. 2020-01-11 18:32:05 +00:00
pluggable.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:26:13 +00:00
plugin.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
post-formats.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
post-template.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
post-thumbnail-template.php Post Thumbnails: Make sure get_post_thumbnail_id() returns an integer, to match the documented return value. 2020-02-02 03:08:04 +00:00
post.php Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions. 2020-06-29 21:22:09 +00:00
query.php Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:55:12 +00:00
registration-functions.php Docs: Add missing @deprecated tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
registration.php Docs: Add missing @deprecated tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
rest-api.php REST API: Make multi-typed schemas more robust. 2020-07-05 00:15:05 +00:00
revision.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
rewrite.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
rss-functions.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
rss.php General: Continuing to work towards a passing PHP Compatibility scan. 2020-06-03 17:40:12 +00:00
script-loader.php Media: Show an error message when a .heic file is uploaded that this type of files cannot be displayed in a web browser and suggesting to convert to JPEG. The message is shown by using filters, plugins that want to handle uploading of .heic files can remove it. 2020-07-03 23:15:03 +00:00
session.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
shortcodes.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
sitemaps.php Docs: Corrections and improvements to inline docs related to XML sitemaps. 2020-06-19 22:26:10 +00:00
spl-autoload-compat.php
taxonomy.php Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions. 2020-06-29 21:22:09 +00:00
template-loader.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:37:10 +00:00
template.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
theme.php Docs: Improve DocBlocks in wp-includes/theme.php per the documentation standards. 2020-06-27 12:02:03 +00:00
update.php Docs: Clarify the description of functions that check for and perform updates. 2020-06-26 18:34:03 +00:00
user.php Docs: Improve documentation for the $prev_value parameter and return result of various metadata update functions. 2020-06-29 21:22:09 +00:00
vars.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
version.php REST API: Make multi-typed schemas more robust. 2020-07-05 00:15:05 +00:00
widgets.php Docs: Improve documentation for optional parameters per the documentation standards. 2020-06-28 11:49:02 +00:00
wlwmanifest.xml
wp-db.php Docs: Capitalize "ID", when referring to a user ID, term ID, etc. in a more consistent way. 2020-06-28 14:09:04 +00:00
wp-diff.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00