WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#30039 new defect (bug)

Email validation not working correctly

Reported by: BigWhale Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.0
Component: Formatting Keywords: is-email
Focuses: ui, administration Cc:

Description

When creating new users with wp_insert_user or when changing user's email address in UI. Emails such as 'joe@com' or 'jill@sometld' are not accepted as valid email addresses.

Those email addresses are rarely used, but they are valid email addresses.

Change History (3)

#2 @BigWhale
4 years ago

So many related bugs. I'd suggest that validation includes only validating if '@' character is present, the absence of trailing dot, and the absence of double dots. Everything the else is a fair game.

#3 @miqrogroove
3 years ago

  • Component changed from Users to Formatting
  • Keywords is-email added
Note: See TracTickets for help on using tickets.