[wp-trac] [WordPress Trac] #35201: Mobile email validation
WordPress Trac
noreply at wordpress.org
Tue Dec 22 17:08:29 UTC 2015
#35201: Mobile email validation
---------------------------+-----------------------------
Reporter: njbebop | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 4.4
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
While testing form submission through Samsung Android devices (Galaxy S6
Edge and Galaxy Note 5), we noticed that when user selects their email
from the field history dropdown, it appends a space at the end of the
email address. This invalidates the email when using the is_email
validation function in wp-includes/formatting.php.
A fix I am currently using is simply adding a trim function to the email
address in the first line of the function...
$email = trim($email);
This resolves the Samsung bug and passes the email validation. I hope
this helps.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35201>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list