summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
diff options
context:
space:
mode:
authorJohn Blackbourn <johnbillion@git.wordpress.org>2021-01-03 22:02:13 +0000
committerJohn Blackbourn <johnbillion@git.wordpress.org>2021-01-03 22:02:13 +0000
commit679ccc35e63e62a90c768afcc16f46bd154dfb65 (patch)
treed1f8aecbddc39afc3fd960d1cae3860093a126cb /src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
parent374b41ed13a5cf26739287a2c3fee15b14d4cfc5 (diff)
downloadwordpress-679ccc35e63e62a90c768afcc16f46bd154dfb65.tar.gz
wordpress-679ccc35e63e62a90c768afcc16f46bd154dfb65.zip
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
Diffstat (limited to 'src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php')
-rw-r--r--src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php2
1 files changed, 1 insertions, 1 deletions
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' ) ) {