Pass ID to is_super_admin(). Props bigdawggi. fixes #14066 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@15311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8e62707d40
commit
6582f99bf2
|
@ -728,7 +728,7 @@ class WP_User {
|
|||
$caps = call_user_func_array( 'map_meta_cap', $args );
|
||||
|
||||
// Multisite super admin has all caps by definition, Unless specifically denied.
|
||||
if ( is_multisite() && is_super_admin() ) {
|
||||
if ( is_multisite() && is_super_admin( $this->ID ) ) {
|
||||
if ( in_array('do_not_allow', $caps) )
|
||||
return false;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue