[wp-trac] [WordPress Trac] #14767: wp_create_user() does not check for a valid email address

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 2 21:38:23 UTC 2010


#14767: wp_create_user() does not check for a valid email address
--------------------------+-------------------------------------------------
 Reporter:  mrwiblog      |       Owner:                          
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  Awaiting Review         
Component:  Users         |     Version:  3.0.1                   
 Severity:  normal        |    Keywords:  wp_create_user, is_email
--------------------------+-------------------------------------------------
 When creating a new user an invalid email address (for example user@) will
 result in a zero-length string in the email field of the users table. If
 another new user is subsequently created with another invalid email
 address the error returned is "This email address is already registered."

 It would be better for wp_create_user() to check if a valid email address
 has been given and return a more descriptive error. I attach a patch file
 for wp-includes/registration.php to include this functionality.

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


More information about the wp-trac mailing list