WordPress.org

Make WordPress Core

Changeset 19625


Ignore:
Timestamp:
12/21/11 20:08:31 (4 years ago)
Author:
ryan
Message:

Assign the full WP_User object to the userdata global. Props scribu. fixes #19595 for 3.3

File:
1 edited

Legend:

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

    r19209 r19625  
    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.