[wp-trac] [WordPress Trac] #43107: wp_create_user() incorrectly errors on emails without a . / tld

WordPress Trac noreply at wordpress.org
Wed Jan 17 12:11:44 UTC 2018


#43107: wp_create_user() incorrectly errors on emails without a . / tld
--------------------------+-----------------------------
 Reporter:  raisonon      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  4.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 According to the latest HTML5 specification the following examples counts
 as correctly formatted email:

 email at localhost OR susan at 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.''

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43107>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list