WordPress.org

Make WordPress Core

Changes between Initial Version and Version 10 of Ticket #17433


Ignore:
Timestamp:
10/19/2014 07:49:58 AM (4 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17433

    • Property Keywords has-patch needs-unit-tests added
    • Property Cc info@… kurtpayne pauldewouters@… added
    • Property Milestone changed from Awaiting Review to Future Release
  • Ticket #17433 – Description

    initial v10  
    22
    33I think the bug is exactly in wp-includes/formatting.php, where it says:
    4 
     4{{{
    55        // Assume the domain will have at least two subs
    66        if ( 2 > count( $subs ) ) {
    77                return apply_filters( 'is_email', false, $email, 'domain_no_periods' );
    88        }
    9 
     9}}}
    1010So: Could you please special-case "localhost" in is_email() so that it's allowed as email domain?
    1111