Ticket #12503: 12503-2.diff
File 12503-2.diff, 610 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
1520 1520 } 1521 1521 } 1522 1522 1523 // DNS1524 // Check the domain has a valid MX and A resource record1525 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 1529 1523 // Congratulations your email made it! 1530 1524 return apply_filters( 'is_email', $email, $email, null ); 1531 1525 }