|
@@ 469-471 (lines=3) @@
|
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
// No .test or .local domains |
| 469 |
|
if ( preg_match( '#\.(test|local)$#i', $domain ) ) { |
| 470 |
|
return new WP_Error( 'fail_domain_tld', sprintf( __( 'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', 'jetpack' ), $domain ) ); |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
// No WPCOM subdomains |
| 474 |
|
if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
|
@@ 474-476 (lines=3) @@
|
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
// No WPCOM subdomains |
| 474 |
|
if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
| 475 |
|
return new WP_Error( 'fail_subdomain_wpcom', sprintf( __( 'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', 'jetpack' ), $domain ) ); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
// If PHP was compiled without support for the Filter module (very edge case) |
| 479 |
|
if ( ! function_exists( 'filter_var' ) ) { |