[wp-trac] [WordPress Trac] #45747: Deprecate update_user_status

WordPress Trac noreply at wordpress.org
Wed Jul 31 00:28:32 UTC 2019


#45747: Deprecate update_user_status
---------------------------------------------+-----------------------------
 Reporter:  spacedmonkey                     |       Owner:  SergeyBiryukov
     Type:  enhancement                      |      Status:  reviewing
 Priority:  normal                           |   Milestone:  5.3
Component:  Users                            |     Version:  3.0
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch good-first-bug commit  |     Focuses:  multisite
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch good-first-bug => has-patch good-first-bug commit


Comment:

 I could not get [attachment:"45747.diff"] to work: simply passing
 `$userdata['spam']` to `wp_update_user()` does not save the value in the
 database if it's not specifically handled in the function.

 [attachment:"45747.2.diff"] fixes that, updates the docs, and also changes
 `make_spam_user` and `make_ham_user` to fire after the update, as they do
 in `update_user_status()`, not before.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45747#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list