Skip to content
Browse files

Use map_meta_cap for multisite super admins in current_user_can_for_b…

…log. props jamescollins, fixes #15122 for 3.0.

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@16631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 40e9840 commit f06897b0f4fefe8188b6069f7f31ecfda40e7170 nacin committed Nov 30, 2010
Showing with 0 additions and 3 deletions.
  1. +0 −3 wp-includes/capabilities.php
View
3 wp-includes/capabilities.php
@@ -1079,9 +1079,6 @@ function current_user_can( $capability ) {
function current_user_can_for_blog( $blog_id, $capability ) {
$current_user = wp_get_current_user();
- if ( is_multisite() && is_super_admin() )
- return true;
-
if ( empty( $current_user ) )
return false;

0 comments on commit f06897b

Please sign in to comment.
Something went wrong with that request. Please try again.