[wp-trac] [WordPress Trac] #21429: wp_update_user() and wp_insert_user() should accept WP_User
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 31 17:20:00 UTC 2012
#21429: wp_update_user() and wp_insert_user() should accept WP_User
-------------------------+-------------------
Reporter: ryan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Users | Version: 3.4.1
Severity: normal | Keywords:
-------------------------+-------------------
These functions currently accept only an array of user data. This
encourages using wp_update_user( get_object_vars( $user ) ). If $user
happens to be a WP_User instance, this will fail since WP_User doesn't
declare object vars. wp_update_user() and wp_insert_user() should accept
WP_User and handle running get_object_vars() on WP_User::data.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21429>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list