Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#43107 closed defect (bug) (invalid)

wp_create_user() incorrectly errors on emails without a . / tld

Reported by: raisonon's profile raisonon Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: Cc:

Description

According to the latest HTML5 specification the following examples counts as correctly formatted email:

email@localhost OR susan@domain *

reference: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address

When using wp_create_user() with an email formatted as above the following error is produced:

empty_user_login, Cannot create a user with an empty login name.

Ideally, no error is produced and the user account is created.

--

aside: not sure correct way to describe -- no . or no tld -- eitherway, hope example displays what i mean.

Change History (2)

#1 @raisonon
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @ocean90
6 years ago

  • Milestone Awaiting Review deleted
  • Version 4.9.2 deleted
Note: See TracTickets for help on using tickets.