mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
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:
parent
c51dfe7bfe
commit
97ebc17ca8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user