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.
Built from https://develop.svn.wordpress.org/trunk@51349


git-svn-id: http://core.svn.wordpress.org/trunk@50958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj
2021-07-06 15:43:00 +00:00
parent 98579e4495
commit 1dcad8f5bb
3 changed files with 10 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-51348';
$wp_version = '5.9-alpha-51349';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.