wordpress-develop/src/wp-includes/rest-api/endpoints
Sergey Biryukov d6afa281b6 Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api/rest-*-controller.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 `$object` parameter to `$response_data` in:
 * `WP_Test_REST_Attachments_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Autosaves_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Categories_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Comments_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Post_Statuses_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Post_Types_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Posts_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Revisions_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Tags_Controller::additional_field_get_callback()`
 * `WP_Test_REST_Users_Controller::additional_field_get_callback()`
* Amends the `$data` and `$prepared` parameters for consistency in:
 * `WP_REST_Controller::add_additional_fields_to_object()`
 * `WP_REST_Controller::filter_response_by_context()`
 * `rest_filter_response_by_context()`

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].

Props jrf, aristath, poena, justinahinon, SergeyBiryukov.
See #56788.

git-svn-id: https://develop.svn.wordpress.org/trunk@55104 602fd350-edb4-49c9-b593-d223f7449a82
2023-01-20 00:19:09 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Allow a Super Admin to set an application password on a site they're not a member of. 2022-08-11 18:22:59 +00:00
class-wp-rest-attachments-controller.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-autosaves-controller.php Autosave/REST API: Block autosaving from overwriting changes when locked from editing. 2022-09-11 22:33:29 +00:00
class-wp-rest-block-directory-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-block-pattern-categories-controller.php Editor: Allow block pattern categories to have descriptions. 2023-01-19 12:11:57 +00:00
class-wp-rest-block-patterns-controller.php Editor: Remove leading whitespace from some translated strings. 2022-09-29 17:52:39 +00:00
class-wp-rest-block-renderer-controller.php Docs: Document the globals used in some REST API methods. 2021-06-30 12:33:43 +00:00
class-wp-rest-block-types-controller.php Blocks: Allow arrays for deprecated asset types in block registration. 2022-10-24 14:14:25 +00:00
class-wp-rest-blocks-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:20:57 +00:00
class-wp-rest-comments-controller.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-controller.php Code Modernization: Rename parameters that use reserved keywords in phpunit/tests/rest-api/rest-*-controller.php. 2023-01-20 00:19:09 +00:00
class-wp-rest-edit-site-export-controller.php Theme: Use a better method to determine the theme name during export 2022-05-17 12:08:15 +00:00
class-wp-rest-global-styles-controller.php Themes: Reduce usage of wp_get_theme function. 2022-11-11 16:24:47 +00:00
class-wp-rest-menu-items-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-menu-locations-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-menus-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-pattern-directory-controller.php Block Patterns: Update the value used for keywords. 2022-07-05 16:01:36 +00:00
class-wp-rest-plugins-controller.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:01:35 +00:00
class-wp-rest-post-statuses-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
class-wp-rest-post-types-controller.php REST API: Fix check for has_archive inclusion. 2022-09-22 11:31:35 +00:00
class-wp-rest-posts-controller.php Coding Standards: Use HOUR_IN_SECONDS where appropriate. 2022-11-24 14:16:18 +00:00
class-wp-rest-revisions-controller.php Code Modernization: Rename parameters that use reserved keywords in phpunit/includes/class-wp-unittest-factory-for-attachment.php. 2022-12-30 02:36:03 +00:00
class-wp-rest-search-controller.php REST API: Add support for searching resources by id. 2022-09-11 21:10:31 +00:00
class-wp-rest-settings-controller.php REST API: Add support for settings to specify their own additionalProperties. 2022-09-11 23:28:39 +00:00
class-wp-rest-sidebars-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-site-health-controller.php I18N: Always pass $locale to load_textdomain(). 2022-11-10 19:38:20 +00:00
class-wp-rest-taxonomies-controller.php Taxonomy: Correct an invalid @param tag. 2022-10-11 09:54:12 +00:00
class-wp-rest-templates-controller.php Themes: Reduce usage of wp_get_theme function. 2022-11-11 16:24:47 +00:00
class-wp-rest-terms-controller.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-themes-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 13:58:46 +00:00
class-wp-rest-url-details-controller.php General: Replace all esc_url_raw() calls in core with sanitize_url(). 2022-06-01 18:12:25 +00:00
class-wp-rest-users-controller.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-widget-types-controller.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php. 2022-12-14 14:26:51 +00:00
class-wp-rest-widgets-controller.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php. 2022-12-14 14:29:55 +00:00