WordPress.org

Make WordPress Core

Changeset 15812


Ignore:
Timestamp:
10/15/2010 06:47:40 AM (10 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r15746 r15812  
    10901090    $current_user = wp_get_current_user();
    10911091
    1092     if ( is_multisite() && is_super_admin() )
    1093         return true;
    1094 
    10951092    if ( empty( $current_user ) )
    10961093        return false;
Note: See TracChangeset for help on using the changeset viewer.