mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-12 16:44:34 +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:
@@ -34,7 +34,7 @@ class Tests_User_WpAuthenticateSpamCheck extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() {
|
||||
$user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
|
||||
update_user_status( $user_id, 'spam', 1 );
|
||||
wp_update_user( array( 'ID' => $user_id, 'spam' => '1' ) );
|
||||
$user = new WP_User( $user_id );
|
||||
$actual_user = wp_authenticate_spam_check( $user );
|
||||
wpmu_delete_user( $user_id );
|
||||
|
||||
Reference in New Issue
Block a user