Skip to content

Commit

Permalink
Docs: Clarify that is_network_admin() does not check if the site is…
Browse files Browse the repository at this point in the history
… a Multisite network; `is_multisite()` should be used for that.

Props svovaf, dilipbheda, tazotodua.
Fixes #47415.

git-svn-id: https://develop.svn.wordpress.org/trunk@45672 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jul 25, 2019
1 parent 128597b commit f00229a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-includes/load.php
Expand Up @@ -1031,6 +1031,9 @@ function is_blog_admin() {
* Does not check if the user is an administrator; use current_user_can()
* 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
*
* @global WP_Screen $current_screen
Expand Down

0 comments on commit f00229a

Please sign in to comment.