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

git-svn-id: http://svn.automattic.com/wordpress/branches/3.3@19625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-12-21 20:08:31 +00:00
parent c51dfe7bfe
commit 97ebc17ca8

View File

@ -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;