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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-12-21 20:07:54 +00:00
parent c924060858
commit b20fbf6fd1
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ function setup_userdata($for_user_id = '') {
else else
$user = new WP_User($for_user_id); $user = new WP_User($for_user_id);
$userdata = $user->data; $userdata = $user;
$user_ID = (int) $user->ID; $user_ID = (int) $user->ID;
$user_level = (int) isset($user->user_level) ? $user->user_level : 0; $user_level = (int) isset($user->user_level) ? $user->user_level : 0;