Skip to content

Commit d11377e

Browse files
committed
Docs: Improve docblock for rest_menu_read_access filter.
Follow-up to [59718]. See #62281, #54304. git-svn-id: https://develop.svn.wordpress.org/trunk@59734 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 95247e3 commit d11377e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ protected function check_has_read_only_access( $request ) {
8484
* Filters whether the current user has read access to menu items via the REST API.
8585
*
8686
* @since 6.8.0
87-
* @param $read_only_access bool Whether the current user has read access to menu items via the REST API.
88-
* @param $request WP_REST_Request Full details about the request.
89-
* @param $this WP_REST_Controller The current instance of the controller.
87+
*
88+
* @param bool $read_only_access Whether the current user has read access to menu items
89+
* via the REST API.
90+
* @param WP_REST_Request $request Full details about the request.
91+
* @param WP_REST_Controller $this The current instance of the controller.
9092
*/
9193
$read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this );
9294
if ( $read_only_access ) {

0 commit comments

Comments
 (0)