Skip to content

Commit

Permalink
Assign the full WP_User object to the userdata global. Props scribu. …
Browse files Browse the repository at this point in the history
…fixes #19595

git-svn-id: http://svn.automattic.com/wordpress/trunk@19624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Dec 21, 2011
1 parent c924060 commit b20fbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/user.php
Expand Up @@ -931,7 +931,7 @@ function setup_userdata($for_user_id = '') {
else
$user = new WP_User($for_user_id);

$userdata = $user->data;
$userdata = $user;
$user_ID = (int) $user->ID;
$user_level = (int) isset($user->user_level) ? $user->user_level : 0;

Expand Down

0 comments on commit b20fbf6

Please sign in to comment.