Make WordPress Core


Ignore:
Timestamp:
12/13/2010 11:44:53 AM (14 years ago)
Author:
scribu
Message:

Slight logic tweak to [16889]. See #14123

File:
1 edited

Legend:

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

    r16889 r16890  
    470470        $blog_id = absint( $qv['blog_id'] );
    471471
    472         if ( $role || ( is_multisite() && $blog_id ) ) {
     472        if ( $blog_id && ( $role || is_multisite() ) ) {
    473473            $cap_meta_query = array();
    474474            $cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
Note: See TracChangeset for help on using the changeset viewer.