WordPress/wp-includes/rest-api/endpoints
desrosj 636f00b5f2 REST API: Add the $request parameter to methods checking permissions.
This adds the `$request` parameter to the permissions_check() methods within `WP_REST_Widgets_Controller` and adds $request as an allowed parameter to the `permissions_check()` method within `WP_REST_Templates_Controller`.

Even when this parameter is not used by default, it should be implemented to support the class being extended and the method overridden.

Props johnbillion, timothyblynjacobs.
Merges [51349] to the 5.8 branch.
Fixes #53593.
Built from https://develop.svn.wordpress.org/branches/5.8@51350


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:56:59 +00:00
..
class-wp-rest-application-passwords-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-attachments-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-autosaves-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-block-directory-controller.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-07-02 19:04:56 +00:00
class-wp-rest-block-renderer-controller.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-rest-block-types-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-blocks-controller.php Role/Capability: Use meta caps edit_post, read_post, and delete_post directly. 2020-05-23 15:24:07 +00:00
class-wp-rest-comments-controller.php Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters. 2021-07-01 18:51:02 +00:00
class-wp-rest-controller.php Docs: Use 3-digit, x.x.x-style semantic versioning for two _doing_it_wrong() calls. 2021-05-22 13:09:56 +00:00
class-wp-rest-pattern-directory-controller.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-07-02 19:04:56 +00:00
class-wp-rest-plugins-controller.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-07-02 19:04:56 +00:00
class-wp-rest-post-statuses-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-post-types-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-posts-controller.php Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters. 2021-07-01 18:51:02 +00:00
class-wp-rest-revisions-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-search-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +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: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-07-02 19:04:56 +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 REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-templates-controller.php REST API: Add the $request parameter to methods checking permissions. 2021-07-06 15:56:59 +00:00
class-wp-rest-terms-controller.php Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters. 2021-07-01 18:51:02 +00:00
class-wp-rest-themes-controller.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-07-02 19:04:56 +00:00
class-wp-rest-users-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
class-wp-rest-widget-types-controller.php Docs: List the expected type first instead of WP_Error in some REST API methods added in 5.8. 2021-07-02 19:03:57 +00:00
class-wp-rest-widgets-controller.php REST API: Add the $request parameter to methods checking permissions. 2021-07-06 15:56:59 +00:00