From 1d283ef54fa5c684ecb80d994260f08f7db1dee3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 25 Jul 2019 15:19:58 +0000 Subject: [PATCH] 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 --- wp-includes/load.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 7e5314c0d2..38b4b771b2 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -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 diff --git a/wp-includes/version.php b/wp-includes/version.php index b21930f971..1e83126ddf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.