WordPress/wp-includes/rest-api/endpoints
Sergey Biryukov e2a5b8684e Coding Standards: Standardize on user_id when passing data to comment functions.
The `wp_new_comment()`, `wp_update_comment()`, and `wp_filter_comment()` functions already normalize the `user_ID` parameter internally to `user_id`, which matches the database field name.

This commit aims to bring some consistency when passing the parameter in core.

The corresponding `$user_ID` variable is also renamed to `$user_id` to match the other variables when not referring to the `$user_ID` global, which has an exception in the WordPress coding standards.

Follow-up to [8543], [8720], [12267], [12300], [26491], [28915], [28922], [34799], [49303].

See #55647, #56244.
Built from https://develop.svn.wordpress.org/trunk@53729


git-svn-id: http://core.svn.wordpress.org/trunk@53288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-20 14:14:09 +00:00
..
class-wp-rest-application-passwords-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-attachments-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-autosaves-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-block-directory-controller.php REST API: Correct the schema for the wp/v2/block-directory/search endpoint. 2022-04-29 16:55:13 +00:00
class-wp-rest-block-pattern-categories-controller.php Docs: Various docblock corrections and improvements for changes introduced in 6.0. 2022-04-28 09:59:13 +00:00
class-wp-rest-block-patterns-controller.php Docs: Various docblock corrections and improvements for changes introduced in 6.0. 2022-04-28 09:59:13 +00:00
class-wp-rest-block-renderer-controller.php Docs: Document the globals used in some REST API methods. 2021-06-30 12:34:56 +00:00
class-wp-rest-block-types-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-blocks-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:22:02 +00:00
class-wp-rest-comments-controller.php Coding Standards: Standardize on user_id when passing data to comment functions. 2022-07-20 14:14:09 +00:00
class-wp-rest-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:59:02 +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:10:14 +00:00
class-wp-rest-global-styles-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-menu-items-controller.php Docs: Misc. docblock enhancements in WP_REST_Menu_Items_Controller class, as per docblock standards. 2022-07-07 12:32:12 +00:00
class-wp-rest-menu-locations-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-menus-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 19:00:01 +00:00
class-wp-rest-pattern-directory-controller.php Block Patterns: Update the value used for keywords. 2022-07-05 16:03:13 +00:00
class-wp-rest-plugins-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-post-statuses-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-post-types-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-posts-controller.php REST API: Some documentation and test improvements for update_post_parent_caches(): 2022-06-15 13:19:10 +00:00
class-wp-rest-revisions-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:16:58 +00:00
class-wp-rest-search-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:36:57 +00:00
class-wp-rest-settings-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-sidebars-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00
class-wp-rest-site-health-controller.php Security, Site Health: Improve accuracy in messaging about HTTPS support. 2021-01-29 19:10:58 +00:00
class-wp-rest-taxonomies-controller.php Coding Standards: Use consistent placement for ::prepare_links() methods. 2022-07-19 16:22:09 +00:00
class-wp-rest-templates-controller.php Update @wordpress packages 2022-01-04 05:39:28 +00:00
class-wp-rest-terms-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:59:02 +00:00
class-wp-rest-themes-controller.php REST API: Move all links to prepare_links method in theme REST API controller. 2022-06-21 10:48:21 +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:14:10 +00:00
class-wp-rest-users-controller.php Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
class-wp-rest-widget-types-controller.php I18N: Remove redundant default text domain parameter in some __() calls. 2021-11-30 08:33:05 +00:00
class-wp-rest-widgets-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00