wp_create_user() does not check for a valid email address
|Reported by:||mrwiblog||Owned by:|
|Severity:||normal||Keywords:||wp_create_user, is_email, has-patch|
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.