We don't want a populated WP_User object here. see #14642.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-18 00:26:29 +00:00
parent 52fca11fca
commit 0902043f6d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function add_user() {
*/
function edit_user( $user_id = 0 ) {
global $wp_roles, $wpdb;
$user = new WP_User( $user_id );
$user = new stdClass;
if ( $user_id ) {
$update = true;
$user->ID = (int) $user_id;