WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/01/2019 11:27:28 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Users: Deprecate update_user_status() in favor of wp_update_user().

Props spacedmonkey, SergeyBiryukov.
Fixes #45747.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/wpAuthenticateSpamCheck.php

    r42343 r45708  
    3535    function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() {
    3636        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    37         update_user_status( $user_id, 'spam', 1 );
     37        wp_update_user( array( 'ID' => $user_id, 'spam' => '1' ) );
    3838        $user        = new WP_User( $user_id );
    3939        $actual_user = wp_authenticate_spam_check( $user );
Note: See TracChangeset for help on using the changeset viewer.