[wp-trac] [WordPress Trac] #14308: wp_insert_user in 3.0 is not backwards compatible

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 15 05:56:52 UTC 2010


#14308: wp_insert_user in 3.0 is not backwards compatible
--------------------------+-------------------------------------------------
 Reporter:  ahupp         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  Users         |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by ahupp):

 * cc: ahupp (added)


Comment:

 I was actually suggesting reverting wp_insert_user() to 2.0 behavior, but
 I appreciate that has its own difficulties.    Thanks for the quick
 response.

 Another option is to make multiple versions of this function, one with
 verbose error reporting and one without.  wp_insert_user_ex() would return
 int|WP_Error, and wp_insert_error() would continue to return 0 on error.
 I expect there is more code out there expecting the 2.0 behavior than the
 3.0 behavior.

 -Adam

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


More information about the wp-trac mailing list