Docs: Improve docblock for rest_menu_read_access filter.

Follow-up to [59718].

See #62281, #54304.



Built from https://develop.svn.wordpress.org/trunk@59734


git-svn-id: http://core.svn.wordpress.org/trunk@59076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2025-01-29 23:15:23 +00:00
parent 34458b5bca
commit ac5aaad84e
2 changed files with 6 additions and 4 deletions

View File

@ -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 ) {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59733';
$wp_version = '6.8-alpha-59734';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.