#43107 closed defect (bug) (invalid)
wp_create_user() incorrectly errors on emails without a . / tld
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.