WordPress.org

Make WordPress Core

Changeset 16631


Ignore:
Timestamp:
11/30/2010 08:40:25 PM (10 years ago)
Author:
nacin
Message:

Use map_meta_cap for multisite super admins in current_user_can_for_blog. props jamescollins, fixes #15122 for 3.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/capabilities.php

    r15562 r16631  
    10801080    $current_user = wp_get_current_user();
    10811081
    1082     if ( is_multisite() && is_super_admin() )
    1083         return true;
    1084 
    10851082    if ( empty( $current_user ) )
    10861083        return false;
Note: See TracChangeset for help on using the changeset viewer.