Skip to content

Commit ec5bf32

Browse files
Docs: Correct parameter name for rest_menu_read_access filter.
The filter's third parameter was incorrectly named `$this`, which is not a valid parameter name. Follow-up to [59718], [59734]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60172 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9063e30 commit ec5bf32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function check_has_read_only_access( $request ) {
8888
* @param bool $read_only_access Whether the current user has read access to menu items
8989
* via the REST API.
9090
* @param WP_REST_Request $request Full details about the request.
91-
* @param WP_REST_Controller $this The current instance of the controller.
91+
* @param WP_REST_Controller $controller The current instance of the controller.
9292
*/
9393
$read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this );
9494
if ( $read_only_access ) {

0 commit comments

Comments
 (0)