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:
parent
c924060858
commit
b20fbf6fd1
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue