Make WordPress Core

Changeset 60172


Ignore:
Timestamp:
04/17/2025 12:08:25 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php

    r59734 r60172  
    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 );
Note: See TracChangeset for help on using the changeset viewer.