WordPress.org

Make WordPress Core

Ticket #12503: 12503-2.diff

File 12503-2.diff, 610 bytes (added by technosailor, 4 years ago)

In that case, rip it out.

  • wp-includes/formatting.php

     
    15201520                } 
    15211521        } 
    15221522 
    1523         // DNS 
    1524         // Check the domain has a valid MX and A resource record 
    1525         if ( $check_dns && function_exists( 'checkdnsrr' ) && !( checkdnsrr( $domain . '.', 'MX' ) || checkdnsrr( $domain . '.', 'A' ) ) ) { 
    1526                 return apply_filters( 'is_email', false, $email, 'dns_no_rr' ); 
    1527         } 
    1528  
    15291523        // Congratulations your email made it! 
    15301524        return apply_filters( 'is_email', $email, $email, null ); 
    15311525}