mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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:
parent
52fca11fca
commit
0902043f6d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user