Make WordPress Core

Changeset 19624


Ignore:
Timestamp:
12/21/2011 08:07:54 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r19593 r19624  
    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.