WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-includes/user.php

    r19209 r19643  
    697697        if ( 'capabilities' !== substr( $key, -12 ) )
    698698            continue;
    699         if ( 0 !== strpos( $key, $wpdb->base_prefix ) )
     699        if ( $wpdb->base_prefix && 0 !== strpos( $key, $wpdb->base_prefix ) )
    700700            continue;
    701701        $blog_id = str_replace( array( $wpdb->base_prefix, '_capabilities' ), '', $key );
     
    932932        $user = new WP_User($for_user_id);
    933933
    934     $userdata   = $user->data;
     934    $userdata   = $user;
    935935    $user_ID    = (int) $user->ID;
    936936    $user_level = (int) isset($user->user_level) ? $user->user_level : 0;
Note: See TracChangeset for help on using the changeset viewer.