wordpress-develop/src/wp-includes/rest-api
Jonathan Desrosiers efb1b5946d 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 overidden.

Props johnbillion, timothyblynjacobs.
Fixes #53593.

git-svn-id: https://develop.svn.wordpress.org/trunk@51349 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-06 15:41:35 +00:00
..
endpoints REST API: Add the $request parameter to methods checking permissions. 2021-07-06 15:41:35 +00:00
fields REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:11:55 +00:00
search REST API: Corrections and improvements to docblocks for REST API filters. 2021-01-10 22:21:39 +00:00
class-wp-rest-request.php REST API: Return detailed error information from request validation. 2021-02-02 17:26:06 +00:00
class-wp-rest-response.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:02:32 +00:00
class-wp-rest-server.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-06-30 18:42:59 +00:00