WordPress/wp-includes
Sergey Biryukov a864df149a Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api.php.
While using reserved PHP keywords as parameter name labels is allowed, in the context of function calls using named parameters in PHP 8.0+, this will easily lead to confusion. To avoid that, it is recommended not to use reserved keywords as function parameter names.

This commit:
* Renames the `$string` parameter to `$date` in:
 * `Tests_REST_API::test_rest_parse_date()`
 * `Tests_REST_API::test_rest_parse_date_force_utc()`
* Amends the `$value` and `$valid` parameters to `$expected` for consistency.

Follow-up to [52946], [52996], [52997], [52998], [53003], [53014], [53029], [53039], [53116], [53117], [53137], [53174], [53184], [53185], [53192], [53193], [53198], [53203], [53207], [53215], [53216], [53220], [53230], [53232], [53236], [53239], [53240], [53242], [53243], [53245], [53246], [53257], [53269], [53270], [53271], [53272], [53273], [53274], [53275], [53276], [53277], [53281], [53283], [53284], [53285], [53287], [53364], [53365], [54927], [54929], [54930], [54931], [54932], [54933], [54938], [54943], [54944], [54945], [54946], [54947], [54948], [54950], [54951], [54952], [54956], [54959], [54960], [54961], [54962], [54964], [54965], [54969], [54970], [54971], [54972], [54996], [55000], [55011], [55013], [55014], [55015], [55016], [55017], [55020], [55021], [55023], [55027], [55028], [55034], [55036], [55037], [55038], [55039], [55049], [55050], [55060], [55062], [55064], [55065], [55076], [55077], [55078], [55081], [55090], [55100], [55104], [55112], [55115].

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


git-svn-id: http://core.svn.wordpress.org/trunk@54649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-01-23 12:12:11 +00:00
..
assets Editor: Update block editor packages to the latest patch releases. 2022-11-11 12:46:55 +00:00
block-patterns
block-supports Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
blocks Editor: Update packages to unblock lazy-loading issues. 2023-01-16 19:59:36 +00:00
certificates
css Editor: Update packages to unblock lazy-loading issues. 2023-01-16 19:59:36 +00:00
customize Coding Standards: Use HOUR_IN_SECONDS where appropriate. 2022-11-24 14:18:15 +00:00
fonts
ID3
images
IXR Code Modernization: Use correct property in IXR_Message::tag_open(). 2023-01-20 01:36:10 +00:00
js Editor: Add inert attribute polyfill. 2023-01-18 11:16:33 +00:00
php-compat Code Modernization: Rename parameters that use reserved keywords in wp-includes/php-compat/readonly.php. 2022-12-08 19:31:17 +00:00
PHPMailer External Libraries: Upgrade PHPMailer to version 6.7. 2022-12-06 12:19:15 +00:00
pomo Code Modernization: Rename parameters that use reserved keywords in wp-includes/pomo/streams.php. 2022-12-12 20:21:12 +00:00
random_compat
Requests HTTP API: Adds BC-layer /library/Requests.php file. 2022-12-19 15:12:11 +00:00
rest-api Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api/rest-*-controller.php. 2023-01-20 00:21:15 +00:00
SimplePie
sitemaps Code Modernization: Rename parameters that use reserved keywords in wp-includes/sitemaps/class-wp-sitemaps.php. 2022-12-16 10:43:16 +00:00
sodium_compat
style-engine Code Modernization: Add AllowDynamicProperties attribute to recently introduced classes. 2022-10-11 15:00:12 +00:00
Text
theme-compat Coding Standards: Various brace indentation corrections. 2022-11-26 21:01:17 +00:00
widgets
admin-bar.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
atomlib.php
author-template.php
block-editor.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
block-i18n.json
block-patterns.php Editor: Updated the bundled block pattern categories. 2023-01-19 12:21:19 +00:00
block-template-utils.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
block-template.php Themes: Reduce usage of wp_get_theme function. 2022-11-11 16:26:12 +00:00
blocks.php Docs: Clarify default values for a few block function parameters. 2022-10-16 15:46:15 +00:00
bookmark-template.php
bookmark.php
cache-compat.php Cache API: Introduce wp_cache_supports() function. 2022-10-10 18:22:11 +00:00
cache.php Cache API: Introduce wp_cache_supports() function. 2022-10-10 18:22:11 +00:00
canonical.php Canonical: Protect against error for term not exists queries. 2022-11-10 03:01:14 +00:00
capabilities.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
category-template.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
category.php
class-feed.php
class-http.php
class-IXR.php
class-json.php Docs: Replace HTTP links with HTTPS in class-json.php docblocks. 2022-11-07 13:35:12 +00:00
class-oembed.php
class-phpass.php
class-phpmailer.php
class-pop3.php Docs: Typo correction in POP3 class send_cmd() inline docs. 2023-01-15 15:24:12 +00:00
class-requests.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
class-simplepie.php
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-ajax-response.php
class-wp-application-passwords.php
class-wp-block-editor-context.php
class-wp-block-list.php
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php
class-wp-block-patterns-registry.php Add: Documentation for postTypes pattern property. 2022-11-16 16:36:14 +00:00
class-wp-block-styles-registry.php
class-wp-block-supports.php Editor: Fix PHP notice in WP_Block_Supports when no attributes declared. 2022-10-11 18:46:13 +00:00
class-wp-block-template.php
class-wp-block-type-registry.php
class-wp-block-type.php Coding Standards: Always use strict type check for in_array(). 2022-11-29 21:00:14 +00:00
class-wp-block.php Docs: Improve various globals documentation, as per documentation standards. 2022-11-23 21:30:13 +00:00
class-wp-comment-query.php
class-wp-comment.php
class-wp-customize-control.php
class-wp-customize-manager.php Customize: Fix a wrong condition on WP_Customize_Manager::has_published_pages(). 2022-12-05 21:31:11 +00:00
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php Docs: Document the usage of $wpdb global in WP_Date_Query methods. 2022-11-08 13:29:16 +00:00
class-wp-dependencies.php Docs: Correct the type for _WP_Dependency::$src property. 2022-11-25 15:12:16 +00:00
class-wp-dependency.php Docs: Correct the type for _WP_Dependency::$src property. 2022-11-25 15:12:16 +00:00
class-wp-editor.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-embed.php
class-wp-error.php
class-wp-fatal-error-handler.php
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php Docs: Align spelling with American English. 2022-10-21 21:12:14 +00:00
class-wp-http-requests-hooks.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
class-wp-http-requests-response.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
class-wp-http-response.php
class-wp-http-streams.php HTTP API: Correct the documentation for the https_ssl_verify and https_local_ssl_verify filters. 2023-01-13 14:22:12 +00:00
class-wp-http.php HTTP API: Correct the documentation for the https_ssl_verify and https_local_ssl_verify filters. 2023-01-13 14:22:12 +00:00
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php Media: Revert WebP generation. 2022-09-19 22:53:10 +00:00
class-wp-image-editor.php
class-wp-list-util.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:15:19 +00:00
class-wp-locale-switcher.php I18N: Change how WP_Textdomain_Registry caches translation information. 2022-12-20 15:12:11 +00:00
class-wp-locale.php I18N: Initialize WP_Locale array properties. 2023-01-10 14:00:36 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php
class-wp-metadata-lazyloader.php
class-wp-network-query.php Networks and Sites: Revert the use of the metadata API for *_network_options functions. 2022-10-18 18:16:16 +00:00
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php Docs: Document the usage of globals in some functions. 2022-11-13 13:51:20 +00:00
class-wp-oembed.php Embeds: Update Mixcloud oEmbed URL to the new domain. 2023-01-14 10:49:12 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php Query: Stop priming posts twice in WP_Query. 2023-01-06 10:35:15 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php Site Health: Remove the WordPress 5.2 reference from the email sent on fatal errors. 2022-12-17 15:31:17 +00:00
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php Role/Capability: Revert the newly added update_role function for 6.1. 2022-10-24 14:56:16 +00:00
class-wp-scripts.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Networks and Sites: Revert the use of the metadata API for *_network_options functions. 2022-10-18 18:16:16 +00:00
class-wp-site.php
class-wp-styles.php
class-wp-tax-query.php Docs: Improve various globals documentation, as per documentation standards. 2022-11-23 21:30:13 +00:00
class-wp-taxonomy.php Docs: Improve various globals documentation, as per documentation standards. 2022-11-26 09:39:13 +00:00
class-wp-term-query.php Taxonomy: Remove placeholder from WP_Term_Query cache key. 2023-01-18 09:58:16 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-textdomain-registry.php I18N: Change how WP_Textdomain_Registry caches translation information. 2022-12-20 15:12:11 +00:00
class-wp-theme-json-data.php Code Modernization: Add AllowDynamicProperties attribute to recently introduced classes. 2022-10-11 15:00:12 +00:00
class-wp-theme-json-resolver.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
class-wp-theme-json-schema.php
class-wp-theme-json.php Themes: Alphabetize the properties list in WP_Theme_JSON::VALID_STYLES for consistency. 2022-12-20 13:57:15 +00:00
class-wp-theme.php
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Query: Don't attempt caching if running a WP_User_Query before plugins_loaded. 2022-11-08 17:31:13 +00:00
class-wp-user-request.php
class-wp-user.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php Docs: Improve various globals documentation, as per documentation standards. 2022-11-26 09:39:13 +00:00
class-wp.php Bootstrap/Load: Correct sending the X-Pingback header in WP::send_headers(). 2022-10-18 16:11:16 +00:00
class-wpdb.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/class-wpdb.php. 2022-12-08 17:28:15 +00:00
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php Docs: Mark some optional parameters as such in wp-includes/comment-template.php. 2022-12-12 11:51:11 +00:00
comment.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
compat.php Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:15:19 +00:00
cron.php Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/cron.php. 2023-01-09 00:42:15 +00:00
date.php
default-constants.php
default-filters.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
default-widgets.php
deprecated.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
embed-template.php
embed.php
error-protection.php
feed-atom-comments.php Coding Standards: Various brace indentation corrections. 2022-11-26 21:01:17 +00:00
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
formatting.php Docs: Align spelling with American English. 2023-01-11 13:59:13 +00:00
functions.php Date/Time: Prevent errors in current_time() when using timestamp and no value for gmt_offset. 2023-01-11 23:20:12 +00:00
functions.wp-scripts.php Docs: Use third-person singular verbs for Script Loader related function descriptions, as per docblocks standards. 2023-01-15 14:57:13 +00:00
functions.wp-styles.php Docs: Use third-person singular verbs for Script Loader related function descriptions, as per docblocks standards. 2023-01-15 14:57:13 +00:00
general-template.php Login and Registration: Disable spellcheck for password fields. 2023-01-19 08:53:13 +00:00
global-styles-and-settings.php Themes: Revert caching from r55086. 2023-01-18 21:59:13 +00:00
http.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
https-detection.php
https-migration.php
kses.php Formatting: Improve performance of esc_url(). 2023-01-11 15:23:13 +00:00
l10n.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/l10n.php. 2022-12-06 13:03:18 +00:00
link-template.php Posts, Post Types: Use persistent caching in get_adjacent_post function. 2023-01-18 11:20:13 +00:00
load.php Themes: Revert caching from r55086. 2023-01-18 21:59:13 +00:00
locale.php
media-template.php Customize: Escape blogname option in underscores templates. 2022-10-17 11:26:11 +00:00
media.php Media: Prevent decoding attribute corrupting JSON data. 2022-11-11 01:01:12 +00:00
meta.php Docs: Correct parameter name for deleted_{$meta_type}meta action. 2022-10-13 17:24:15 +00:00
ms-blogs.php Themes: Revert caching from r55086. 2023-01-18 21:59:13 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php Docs: Improve various globals documentation, as per documentation standards. 2022-12-09 11:54:13 +00:00
ms-files.php
ms-functions.php Docs: Various docblock fixes in Multisite WordPress API related functions. 2023-01-15 17:52:11 +00:00
ms-load.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
ms-network.php Networks and Sites: Revert the use of the metadata API for *_network_options functions. 2022-10-18 18:16:16 +00:00
ms-settings.php
ms-site.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/ms-site.php. 2022-12-07 21:19:19 +00:00
nav-menu-template.php Menus: Compare $menu_item->ID and $menu_item->menu_item_parent as strings and avoid moidifying them. Plugins may change the ID to a string. 2023-01-12 23:24:12 +00:00
nav-menu.php Menus: Reset menu_item_parent to 0 when the parent is set to the item itself. 2022-12-14 22:54:14 +00:00
option.php Coding Standards: Correct alignment in wp-includes/option.php. 2023-01-05 15:27:16 +00:00
pluggable-deprecated.php
pluggable.php HTTP API: Correct the name of a filter referenced in the docs for wp_redirect() and wp_safe_redirect(). 2023-01-15 01:01:15 +00:00
plugin.php
post-formats.php
post-template.php Login and Registration: Disable spellcheck for password fields. 2023-01-19 08:53:13 +00:00
post-thumbnail-template.php Media: Allow for customization of lazy-loading featured images. 2023-01-19 07:34:14 +00:00
post.php Docs: Remove unused post_modified and post_modified_gmt params from wp_insert_post() docblock. 2023-01-16 20:39:10 +00:00
query.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/query.php. 2022-12-13 12:26:15 +00:00
registration-functions.php
registration.php
rest-api.php Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api/rest-*-controller.php. 2023-01-20 00:21:15 +00:00
revision.php Coding Standards: Use HOUR_IN_SECONDS where appropriate. 2022-11-24 14:18:15 +00:00
rewrite.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/rewrite.php. 2022-12-15 11:03:11 +00:00
robots-template.php
rss-functions.php
rss.php
script-loader.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
session.php
shortcodes.php
sitemaps.php
spl-autoload-compat.php
style-engine.php
taxonomy.php Docs: Remove the legacy example of passing a taxonomy to get_terms(). 2022-12-27 12:23:15 +00:00
template-canvas.php
template-loader.php
template.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/template.php. 2022-12-22 11:08:19 +00:00
theme-i18n.json
theme-templates.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:40:10 +00:00
theme.json
theme.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/theme.php. 2022-12-23 11:38:15 +00:00
update.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
user.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/user.php. 2022-12-24 14:33:14 +00:00
vars.php
version.php Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api.php. 2023-01-23 12:12:11 +00:00
widgets.php Widgets: Escape RSS error messages for display. 2022-10-17 12:41:11 +00:00
wlwmanifest.xml
wp-db.php
wp-diff.php