diff --git a/wp-includes/user.php b/wp-includes/user.php index f1ce386419..9d256c2612 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -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;