Docs: Clarify that `is_network_admin()` does not check if the site is a Multisite network; `is_multisite()` should be used for that.

Props svovaf, dilipbheda, tazotodua.
Fixes #47415.
Built from https://develop.svn.wordpress.org/trunk@45672


git-svn-id: http://core.svn.wordpress.org/trunk@45483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-07-25 15:19:58 +00:00
parent 8ab7bbe385
commit 1d283ef54f
2 changed files with 4 additions and 1 deletions

View File

@ -1031,6 +1031,9 @@ function is_blog_admin() {
* Does not check if the user is an administrator; use current_user_can() * Does not check if the user is an administrator; use current_user_can()
* for checking roles and capabilities. * for checking roles and capabilities.
* *
* Does not check if the site is a Multisite network; use is_multisite()
* for checking if Multisite is enabled.
*
* @since 3.1.0 * @since 3.1.0
* *
* @global WP_Screen $current_screen * @global WP_Screen $current_screen

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45671'; $wp_version = '5.3-alpha-45672';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.