From 679ccc35e63e62a90c768afcc16f46bd154dfb65 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 3 Jan 2021 22:02:13 +0000 Subject: Docs: Promote many `bool` types to `true` or `false` where only that value is used. See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-block-directory-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php') diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php index c3cf4938a2..7b20f78caa 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php @@ -50,7 +50,7 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller { * * @param WP_REST_Request $request Full details about the request. * - * @return WP_Error|bool True if the request has permission, WP_Error object otherwise. + * @return WP_Error|true True if the request has permission, WP_Error object otherwise. */ public function get_items_permissions_check( $request ) { if ( ! current_user_can( 'install_plugins' ) || ! current_user_can( 'activate_plugins' ) ) { -- cgit v1.2.3