mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Network Admin, first pass. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@15481 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -568,6 +568,22 @@ function is_admin() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the current request is in WordPress network admin Panel
|
||||
*
|
||||
* Does not inform on whether the user is a network admin! Use capability checks to
|
||||
* tell if the user should be accessing a section or not.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @return bool True if inside WordPress network administration pages.
|
||||
*/
|
||||
function is_network_admin() {
|
||||
if ( defined( 'WP_NETWORK_ADMIN' ) )
|
||||
return WP_NETWORK_ADMIN;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether Multisite support is enabled
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user