From d11377e16ea0a1ec302fa4acf0b3bc788716223d Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 29 Jan 2025 23:13:17 +0000 Subject: [PATCH] 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 --- .../endpoints/class-wp-rest-menu-items-controller.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php index 08d21fd090..4851196b41 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php @@ -84,9 +84,11 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller { * Filters whether the current user has read access to menu items via the REST API. * * @since 6.8.0 - * @param $read_only_access bool Whether the current user has read access to menu items via the REST API. - * @param $request WP_REST_Request Full details about the request. - * @param $this WP_REST_Controller The current instance of the controller. + * + * @param bool $read_only_access Whether the current user has read access to menu items + * via the REST API. + * @param WP_REST_Request $request Full details about the request. + * @param WP_REST_Controller $this The current instance of the controller. */ $read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this ); if ( $read_only_access ) {