[wp-trac] [WordPress Trac] #59156: sanitize_email method should lowercase the given email
WordPress Trac
noreply at wordpress.org
Tue Aug 22 09:18:48 UTC 2023
#59156: sanitize_email method should lowercase the given email
-------------------------------+------------------------------
Reporter: achchu93 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 6.3
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by roytanck):
As far as I know, Capitalization is allowed in email addresses. It is
usually ignored (like WP does), but the official standard does not require
email addresses to be lowercase.
Since `sanitize_email` is intended to make sure an email address conforms
to the standard, I do not believe it should convert the input to
lowercase.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59156#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list