[wp-trac] [WordPress Trac] #17433: localhost is not accepted as email domain

WordPress Trac wp-trac at lists.automattic.com
Sat May 14 16:55:52 UTC 2011


#17433: localhost is not accepted as email domain
--------------------------+-----------------------------
 Reporter:  sanvila       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Hi. Tried to install WordPress on a Debian machine not connected to
 Internet, only for testing purposes, so when the setup procedure asked me
 for an email address, I used mylogin at localhost. The setup procedure,
 however, rejected this as "invalid".

 I think the bug is exactly in wp-includes/formatting.php, where it says:

         // Assume the domain will have at least two subs
         if ( 2 > count( $subs ) ) {
                 return apply_filters( 'is_email', false, $email,
 'domain_no_periods' );
         }

 So: Could you please special-case "localhost" in is_email() so that it's
 allowed as email domain?

 I guess the probability of someone using @localhost for email "by mistake"
 is extremely low, so this change will unlikely harm the average user.

 Thanks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17433>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list