From 9192d7ab712ddbb43d07b596afad3ea64b5848ed Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Apr 2018 21:13:49 +0000 Subject: [PATCH] Docs: Add missing verb in `is_admin()`, `is_blog_admin()`, `is_network_admin()`, `is_user_admin()` descriptions. See #42505. git-svn-id: https://develop.svn.wordpress.org/trunk@43022 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index e0d2786d29..81014fdde8 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -769,7 +769,7 @@ function wp_clone( $object ) { /** * Determines whether the current request is for an administrative interface page. * - * Does not check if the user is an administrator; current_user_can() + * Does not check if the user is an administrator; use current_user_can() * for checking roles and capabilities. * * For more information on this and similar theme functions, check out @@ -797,7 +797,7 @@ function is_admin() { * * e.g. `/wp-admin/` * - * Does not check if the user is an administrator; current_user_can() + * Does not check if the user is an administrator; use current_user_can() * for checking roles and capabilities. * * @since 3.1.0 @@ -821,7 +821,7 @@ function is_blog_admin() { * * e.g. `/wp-admin/network/` * - * Does not check if the user is an administrator; current_user_can() + * Does not check if the user is an administrator; use current_user_can() * for checking roles and capabilities. * * @since 3.1.0 @@ -845,9 +845,8 @@ function is_network_admin() { * * e.g. `/wp-admin/user/` * - * Does not inform on whether the user is an admin! Use capability - * checks to tell if the user should be accessing a section or not - * current_user_can(). + * Does not check if the user is an administrator; use current_user_can() + * for checking roles and capabilities. * * @since 3.1.0 *