From 58fb5bb514b8d23ef40dfe3a142d020b0769fff2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 24 Jun 2010 14:49:23 +0000 Subject: [PATCH] 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 --- wp-includes/capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 6ab08e3713..ea8ba0ed14 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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;