Make WordPress Core

Opened 3 months ago

#48951 new defect (bug)

email_too_short is not good email validation candidate

Reported by: dingo_d Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Formatting Keywords: 2nd-opinion
Focuses: Cc:


Currently, both is_email and sanitize_email will invalidate/sanitize valid emails:


Both are valid emails. ICANN just discourages using them.

The problem comes when you work with decoupled WordPress, and the front end is using custom validation that allows such emails, but WordPress doesn't so you don't have consistent behavior. Plus this is just wrong, as the official specification allows such mails.


Change History (0)

Note: See TracTickets for help on using tickets.