WordPress.org

Make WordPress Core

Changeset 15311


Ignore:
Timestamp:
06/24/10 14:49:23 (4 years ago)
Author:
ryan
Message:

Pass ID to is_super_admin(). Props bigdawggi. fixes #14066 for 3.1

File:
1 edited

Legend:

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

    r15165 r15311  
    729729 
    730730        // Multisite super admin has all caps by definition, Unless specifically denied. 
    731         if ( is_multisite() && is_super_admin() ) { 
     731        if ( is_multisite() && is_super_admin( $this->ID ) ) { 
    732732            if ( in_array('do_not_allow', $caps) ) 
    733733                return false; 
Note: See TracChangeset for help on using the changeset viewer.