[wp-trac] [WordPress Trac] #21429: wp_update_user() and wp_insert_user() should accept WP_User

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 10 15:36:56 UTC 2012


#21429: wp_update_user() and wp_insert_user() should accept WP_User
-------------------------+---------------------
 Reporter:  ryan         |       Owner:  ryan
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.5
Component:  Users        |     Version:  3.4.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [21496]:
 {{{
 #!CommitTicketReference repository="" revision="21496"
 Allow passing stdClass and WP_User to wp_insert_user() and
 wp_update_user(). Introduce WP_User::to_array(). Eliminate uses of
 get_object_vars() when passing to wp_*_user(). fixes #21429
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21429#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list