mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Users: Deprecate update_user_status() in favor of wp_update_user().
Props spacedmonkey, SergeyBiryukov. Fixes #45747. git-svn-id: https://develop.svn.wordpress.org/trunk@45708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -212,7 +212,7 @@ if ( is_multisite() ) :
|
||||
'user_login' => $spam_username,
|
||||
)
|
||||
);
|
||||
update_user_status( $spam_user_id, 'spam', '1' );
|
||||
wp_update_user( array( 'ID' => $spam_user_id, 'spam' => '1' ) );
|
||||
|
||||
$this->assertTrue( is_user_spammy( $spam_username ) );
|
||||
$this->assertFalse( is_user_spammy( 'testuser1' ) );
|
||||
|
||||
Reference in New Issue
Block a user