WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15165 r15403  
    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;
     
    11131113    $author = new WP_User( $post->post_author );
    11141114
    1115     if ( empty( $author ) )
     1115    if ( empty( $author->ID ) )
    11161116        return false;
    11171117
Note: See TracChangeset for help on using the changeset viewer.