From 6582f99bf2f8c770a912752f4a9513fef26a889d Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@15311 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;