mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -620,6 +620,22 @@ function is_network_admin() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the current request is for a user admin screen /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.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @return bool True if inside WordPress user administration pages.
|
||||
*/
|
||||
function is_user_admin() {
|
||||
if ( defined( 'WP_USER_ADMIN' ) )
|
||||
return WP_USER_ADMIN;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether Multisite support is enabled
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user