WordPress/wp-includes
TimothyBlynJacobs e9b5b1a5bc REST API: Allow for string ids in the search controller.
Previously, the search controller infrastructure required that the id property was an integer. This prevents data models that use a string id from utilizing the search infrastructure.

This commit lifts the restraint that search handlers return integer ids. This will allow for the Post Formats search handler coming in 5.6 to use slugs instead of creating fake ids.

Props stoyangeorgiev.
Fixes #51131.

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


git-svn-id: http://core.svn.wordpress.org/trunk@48850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-02 17:47:09 +00:00
..
assets Editor: update packages. 2020-08-27 16:36:39 +00:00
block-patterns Editor: Remove some hardcoded text color values from patterns that have body text with no specific background color. 2020-08-26 13:34:03 +00:00
blocks Block Editor: Updated WordPress Packages for 5.5 beta 4 2020-07-27 20:10:36 +00:00
certificates HTTP: Update the Root Certificate bundle. 2020-08-01 14:09:06 +00:00
css Media: Make the "Copy URL" button implementation more consistent with other instances in core: 2020-09-27 20:48:05 +00:00
customize Customize: Add / character to <img> tag in WP_Customize_Manager and WP_Customize_Header_Image_Control JS templates. 2020-08-20 13:13:10 +00:00
fonts Administration: Reverse the arrow direction for database import/export icons. 2020-07-17 17:11:03 +00:00
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 XML-RPC: Explicitly unset the reference to the parser resource after calling xml_parser_free() to avoid memory leaks in PHP 7.0.0 or higher. 2020-07-05 15:22:01 +00:00
js Docs: Fix typos in some DocBlocks in js/_enqueues/wp/api.js. 2020-09-30 13:54:06 +00:00
PHPMailer External Libraries: Upgrade PHPMailer to version 6.1.7. 2020-09-22 18:37:08 +00:00
pomo I18N: Add a class_exists() check to Plural_Forms class for consistency with other POMO library classes. 2020-08-10 11:33:09 +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: Allow for string ids in the search controller. 2020-10-02 17:47:09 +00:00
SimplePie
sitemaps Taxonomy: Allow for wp_count_terms( $args ) signature, making passing a taxonomy optional. 2020-08-21 22:32:06 +00:00
sodium_compat External Libraries: Backport a commit from sodium_compat trunk to fix a PHP 8 error. 2020-09-27 05:17:05 +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 Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
admin-bar.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
atomlib.php XML-RPC: Explicitly unset the reference to the parser resource after calling xml_parser_free() to avoid memory leaks in PHP 7.0.0 or higher. 2020-07-05 15:22:01 +00:00
author-template.php Docs: Further corrections and improvements to various inline docblocks. 2020-07-23 07:39:02 +00:00
block-patterns.php Block Editor: Update the Core Block Patterns. 2020-07-27 15:14:04 +00:00
blocks.php Code Modernization: Fix PHP 8 deprecation notices for optional function parameters declared before required parameters. 2020-08-15 13:40:03 +00:00
bookmark-template.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
bookmark.php Docs: Miscellaneous DocBlock corrections. 2020-07-23 21:55:04 +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: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
canonical.php Sitemaps: Prevent incorrect redirection of paged sitemap requests. 2020-08-27 01:30:04 +00:00
capabilities.php Taxonomy: Rename the default_taxonomy_$taxonomy option key to default_term_$taxonomy. 2020-07-28 15:42:07 +00:00
category-template.php Taxonomy: Restore documentation for the taxonomy parameter of wp_list_categories(). 2020-09-27 08:19:04 +00:00
category.php Docs: Miscellaneous DocBlock corrections. 2020-07-23 21:55:04 +00:00
class-feed.php
class-http.php Docs: Improve documentation for WP_Http::processHeaders(). 2020-07-26 22:45:03 +00:00
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php Mail: Make sure the PHPMailer class is only required once if a plugin requires wp-includes/class-phpmailer.php directly. 2020-07-21 12:58:02 +00:00
class-pop3.php
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
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: Correct punctuation in "Your comment is awaiting moderation" string in Walker_Comment. 2020-08-19 02:27:08 +00:00
class-walker-nav-menu.php
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 Docs: Improve description for WP_Admin_Bar::add_group(). 2020-08-19 02:46:04 +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 Docs: Miscellaneous DocBlock corrections. 2020-07-07 09:30:04 +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: Add a note that the $args parameter of register_block_type() accepts any public property of WP_Block_Type. 2020-07-26 22:17:01 +00:00
class-wp-block-type.php REST API: Include attribute name in schema validation error message. 2020-09-10 16:34:11 +00:00
class-wp-block.php Editor: Introduce block context 2020-06-30 11:04:04 +00:00
class-wp-comment-query.php Comments: Assign the array of comment data returned from the comments_pre_query filter to the comments property of the current WP_Comment_Query instance. 2020-09-17 19:55:08 +00:00
class-wp-comment.php Docs: Various docblock corrections and improvements. 2020-09-04 20:41:07 +00:00
class-wp-customize-control.php Docs: Correct and improve inline docs for parameters that accept a callback function. 2020-07-14 11:56:04 +00:00
class-wp-customize-manager.php Code Modernization: Ignore the _multiwidget property when collecting widget numbers in WP_Customize_Manager::import_theme_starter_content(). 2020-09-30 15:46:08 +00:00
class-wp-customize-nav-menus.php Posts, Post Types: Move get_post_states() back to the admin for now, require the file in WP_Customize_Nav_Menus::customize_register() instead. 2020-07-26 10:51: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
class-wp-customize-setting.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
class-wp-customize-widgets.php Docs: Further corrections and improvements to various inline docblocks. 2020-07-23 07:39:02 +00:00
class-wp-date-query.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-dependency.php Docs: Various corrections to inline docblocks. 2020-07-23 00:48:06 +00:00
class-wp-editor.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-embed.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-error.php General: Introduce the wp_error_added and wp_error_checked actions. 2020-09-20 17:44:07 +00:00
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
class-wp-http-cookie.php Docs: Further corrections and improvements to various inline docblocks. 2020-07-23 07:39:02 +00:00
class-wp-http-curl.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +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 Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01: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: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-image-editor-gd.php Media: Return a WP_Error from WP_Image_Editor_GD::load() if file contents could not be retrieved. 2020-09-20 14:28:05 +00:00
class-wp-image-editor-imagick.php Code Modernization: Introduce is_gd_image() to check for PHP 8 GdImage object instances. 2020-08-16 13:33:09 +00:00
class-wp-image-editor.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-list-util.php Coding Standards: Use strict comparison in WP_List_Util::filter(). 2020-07-10 12:46:09 +00:00
class-wp-locale-switcher.php
class-wp-locale.php Docs: Update the URL for PHP date formats table in translator comments. 2020-09-18 10:37:08 +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: Improve docs for arguments that accept a numerically indexed array of associative arrays. 2020-07-14 12:10:05 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php Docs: Reformat comments_pre_query, networks_pre_query, sites_pre_query DocBlocks for better readability. 2020-09-17 11:10:03 +00:00
class-wp-network.php
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 REST API: Issue a _doing_it_wrong when registering a route without a permission callback. 2020-07-21 12:03:05 +00:00
class-wp-oembed.php Code Modernization: Only call libxml_disable_entity_loader() in PHP < 8. 2020-08-12 15:25:03 +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 Docs: Miscellaneous docblock corrections and improvements. 2020-07-13 22:10:07 +00:00
class-wp-post.php Docs: Various docblock corrections and improvements. 2020-09-04 20:41:07 +00:00
class-wp-query.php Docs: Fix typo in *_pre_query filter DocBlocks. 2020-09-17 10:45:03 +00:00
class-wp-recovery-mode-cookie-service.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-recovery-mode-email-service.php Docs: Add a @since note for the recovery_mode_email filter about the $email argument now including the attachments key. 2020-09-18 11:03:02 +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: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-recovery-mode.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-rewrite.php Docs: Use more appropriate variable names in the inline docs for action and filter parameters. 2020-07-23 19:06:03 +00:00
class-wp-role.php Docs: Various formatting improvements to inline docblocks. 2020-07-23 00:52:05 +00:00
class-wp-roles.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-session-tokens.php Code Modernization: Remove final keyword from private methods. 2020-08-12 15:05:08 +00:00
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Docs: Reformat comments_pre_query, networks_pre_query, sites_pre_query DocBlocks for better readability. 2020-09-17 11:10:03 +00:00
class-wp-site.php
class-wp-tax-query.php Docs: Improve docs for arguments that accept a numerically indexed array of associative arrays. 2020-07-14 12:10:05 +00:00
class-wp-taxonomy.php Taxonomy: Add support for default terms for custom taxonomies. 2020-07-07 00:55:03 +00:00
class-wp-term-query.php Docs: Fix typo in *_pre_query filter DocBlocks. 2020-09-17 10:45:03 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Docs: First pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 20:01:04 +00:00
class-wp-theme.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Docs: Fix typo in *_pre_query filter DocBlocks. 2020-09-17 10:45:03 +00:00
class-wp-user-request.php
class-wp-user.php Docs: Miscellaneous DocBlock corrections. 2020-07-23 21:55:04 +00:00
class-wp-walker.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
class-wp-widget-factory.php
class-wp-widget.php Docs: Add missing description for wp_convert_widget_settings() parameters. 2020-07-23 13:50:02 +00:00
class-wp-xmlrpc-server.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
class-wp.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +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: Disable concatenation for scripts with translations to ensure they are printed in the right order. 2020-08-27 21:58:04 +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 Docs: Synchronize the description of the $format parameter in various date/time functions for posts and comments. 2020-09-01 00:43:06 +00:00
comment.php Code Modernization: Remove unnecessary reference sign from get_comment() definition. 2020-09-09 03:55:07 +00:00
compat.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
cron.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
date.php
default-constants.php Coding Standards: Explicitly declare the $wp_version global used in some core files. 2020-09-12 00:12:08 +00:00
default-filters.php Posts, Post Types: Don't output the adjacent posts rel link by default. 2020-09-09 21:34:08 +00:00
default-widgets.php
deprecated.php Code Modernization: Introduce is_gd_image() to check for PHP 8 GdImage object instances. 2020-08-16 13:33:09 +00:00
embed-template.php
embed.php Docs: Various fixes and improvements to inline documentation. 2020-07-30 19:14:03 +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
feed-atom.php
feed-rdf.php
feed-rss2-comments.php Docs: Use more appropriate variable names in the inline docs for action and filter parameters. 2020-07-23 19:06:03 +00:00
feed-rss2.php
feed-rss.php
feed.php Coding Standards: Use strict type check for in_array() in wp-includes/feed.php. 2020-07-11 12:14:06 +00:00
formatting.php Formatting: Make sure links_add_target() adds the target attribute to the correct tag. 2020-09-17 10:14:07 +00:00
functions.php Code Modernization: Check if the file to retrieve metadata from in get_file_data() was successfully opened. 2020-09-30 12:20:03 +00:00
functions.wp-scripts.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +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 Docs: Synchronize the description of the $format parameter in various date/time functions for posts and comments. 2020-09-01 00:43:06 +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: Various corrections to inline docblocks. 2020-07-23 00:48: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 Posts, Post Types: Avoid a PHP notice in wp_get_shortlink() if the post type is no longer registered. 2020-09-28 11:53:08 +00:00
load.php General: Give the $is variable in is_wp_error() a more descriptive name. 2020-09-21 11:13:05 +00:00
locale.php
media-template.php Media: Make the "Copy URL" button implementation more consistent with other instances in core: 2020-09-27 20:48:05 +00:00
media.php Media: Standardise the description for image size parameters. 2020-09-20 16:23:07 +00:00
meta.php Docs: Update documentation for get_{$meta_type}_metadata filter for consistency with default_{$meta_type}_metadata. 2020-08-10 15:50:04 +00:00
ms-blogs.php Docs: Improve documentation for various option functions. 2020-07-05 14:46:03 +00:00
ms-default-constants.php Docs: Remove @staticvar tags from core. 2020-06-20 12:40:12 +00:00
ms-default-filters.php Multisite: Delete the signup entry when a user is deleted from the database. 2020-07-05 11:21:03 +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
ms-functions.php Docs: Various docblock improvements related to user and site signup functionality. 2020-09-30 21:54:07 +00:00
ms-load.php Docs: Remove obsolete $wpdb global reference from get_site_by_path(). 2020-09-23 14:11:07 +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: Document that various metadata functions return false for an invalid ID. 2020-07-28 10:15:04 +00:00
nav-menu-template.php Docs: Miscellaneous DocBlock corrections. 2020-07-08 13:15:03 +00:00
nav-menu.php Menus: Make the $object_id parameter of _wp_delete_post_menu_item() required, for consistency with _wp_delete_tax_menu_item(). 2020-08-15 13:45:06 +00:00
option.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
pluggable-deprecated.php
pluggable.php Mail: PHPMailer swap to use is_email for the default validator. 2020-07-27 20:19:05 +00:00
plugin.php Plugins: Consistently use an empty string as the default value for $replacement and $message parameters in: 2020-07-05 21:09:03 +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 Media: Standardise the description for image size parameters. 2020-09-20 16:23:07 +00:00
post-thumbnail-template.php Media: Standardise the description for image size parameters. 2020-09-20 16:23:07 +00:00
post.php Coding Standards: Make checks for an empty post in wp-includes/post.php more consistent. 2020-10-02 12:37:06 +00:00
query.php Docs: Improve @return tags for various conditional tags. 2020-07-10 20:23:06 +00:00
registration-functions.php
registration.php
rest-api.php REST API: Support the patternProperties JSON Schema keyword. 2020-10-01 02:49:12 +00:00
revision.php Docs: Document the usage of $wpdb global in wp_get_post_autosave(). 2020-09-14 13:37:06 +00:00
rewrite.php Docs: Various fixes and improvements to inline documentation. 2020-07-30 19:14:03 +00:00
rss-functions.php
rss.php XML-RPC: Explicitly unset the reference to the parser resource after calling xml_parser_free() to avoid memory leaks in PHP 7.0.0 or higher. 2020-07-05 15:22:01 +00:00
script-loader.php WP Date: Add timezone abbreviation to wp-date settings. 2020-10-01 17:43:08 +00:00
session.php
shortcodes.php Docs: Another pass at some inline docs fixes mostly made by PHPCBF. 2020-07-23 21:11:05 +00:00
sitemaps.php Sitemaps: Prevent incorrect redirection of paged sitemap requests. 2020-08-27 01:30:04 +00:00
spl-autoload-compat.php
taxonomy.php Code Modernization: Correct the check for parent argument in wp_insert_term() and wp_update_term(). 2020-09-25 00:04:04 +00:00
template-loader.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:37:10 +00:00
template.php Themes: Allow template loading functions to pass additional arguments to the template via the $args parameter. 2020-07-07 11:01:59 +00:00
theme.php Code Modernization: Remove a single trailing percent sign before calling sprintf() on the $default parameter in get_theme_mod(). 2020-09-29 10:03:08 +00:00
update.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
user.php Users: Check if the user ID passed as selected to wp_dropdown_users() corresponds to an existing user. 2020-09-23 00:27:07 +00:00
vars.php
version.php REST API: Allow for string ids in the search controller. 2020-10-02 17:47:09 +00:00
widgets.php Code Modernization: Fix PHP 8 "ArgumentCountError: array_merge() does not accept unknown named parameters" fatal error in retrieve_widgets(). 2020-08-21 21:51:03 +00:00
wlwmanifest.xml
wp-db.php Code Modernization: Return false from wpdb::query() if the query was filtered to an empty string using the query filter. 2020-09-30 12:09:08 +00:00
wp-diff.php