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/multisite.php

    r42343 r45708  
    213213                )
    214214            );
    215             update_user_status( $spam_user_id, 'spam', '1' );
     215            wp_update_user( array( 'ID' => $spam_user_id, 'spam' => '1' ) );
    216216
    217217            $this->assertTrue( is_user_spammy( $spam_username ) );
Note: See TracChangeset for help on using the changeset viewer.