From 0902043f6d0724b414279e15457e1779f2b99c95 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 18 Nov 2010 00:26:29 +0000 Subject: [PATCH] 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 --- wp-admin/includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 4015a02adc..e3226cd92f 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -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;