[wp-trac] [WordPress Trac] #11859: wp_insert_user() VS. wp_update_user()

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 11 03:12:56 UTC 2010


#11859: wp_insert_user() VS. wp_update_user()
-------------------------+--------------------------------------------------
 Reporter:  F J Kaiser   |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Users        |     Version:            
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 i looked at both functions in /wp-includes/registration.php and don´t see
 anything wp_update_user brings in, that wp_insert_user can not do.

 description from registration.php
 *) wp_insert_user(): Insert an user into the database. Can update a
 current user or insert a new user based on whether the user's ID is
 present.
 *) wp_update_user(): Update an user in the database. If $userdata does not
 contain an 'ID' key, then a new user will be created and the new user's ID
 will be returned.

 I don´t really see a need for wp_update_user anymore. I´m open to any
 explanation and discussion. Thanks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11859>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list