|
@@ 87-89 (lines=3) @@
|
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
// No .dev or .local domains |
| 87 |
|
if ( preg_match( '#\.(dev|local)$#i', $domain ) ) { |
| 88 |
|
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 ) ); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
// No WPCOM subdomains |
| 92 |
|
if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
|
@@ 92-94 (lines=3) @@
|
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
// No WPCOM subdomains |
| 92 |
|
if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
| 93 |
|
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 ) ); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
// If PHP was compiled without support for the Filter module (very edge case) |
| 97 |
|
if ( ! function_exists( 'filter_var' ) ) { |