Pass ID to is_super_admin(). Props bigdawggi. fixes #14066 for 3.1

git-svn-id: https://develop.svn.wordpress.org/trunk@15311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-24 14:49:23 +00:00
parent 5c9e072270
commit 58fb5bb514

View File

@ -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;