REQ: Accept ‘ ‘ in email address (tagged address
-
Just a simple feature request; change line 346 in
./wp-includes/functions.php
from:
<pre>
345 function is_email($user_email) {
346 $chars = “/^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}\$/i”;
347 if(strstr($user_email, ‘@’) && strstr($user_email, ‘.’)) {
</pre>
to
<pre>
345 function is_email($user_email) {
346 $chars = “/^([a-z0-9_][a-z0-9_.+-]*)+@(([a-z0-9_-])+\\.)+[a-z]{2,6}\$/i”;
347 if(strstr($user_email, ‘@’) && strstr($user_email, ‘.’)) {
</pre>
This fixes WordPress to allow plus-tagged email addresses as supported by Postfix, etc.. It’s a little more RFC-compliant too…
Note also that the TLD portion of the domain has been changed to[a-z]{2,6}
from[a-z]{2,4}
to account for the.museum
TLD.
- The topic ‘REQ: Accept ‘ ‘ in email address (tagged address’ is closed to new replies.