Move most instances of new WP_User to get_userdata(). see #21120.
git-svn-id: http://core.svn.wordpress.org/trunk@21413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -143,7 +143,7 @@ if ( $action ) {
|
||||
if ( !is_user_member_of_blog( $user_id ) )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
$user = new WP_User( $user_id );
|
||||
$user = get_userdata( $user_id );
|
||||
$user->set_role( $_REQUEST['new_role'] );
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user