|
@@ 74-76 (lines=3) @@
|
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
// No .dev or .local domains |
| 74 |
|
if ( preg_match( '#\.(dev|local)$#i', $domain ) ) { |
| 75 |
|
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 ) ); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// No WPCOM subdomains |
| 79 |
|
if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
|
@@ 79-81 (lines=3) @@
|
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// No WPCOM subdomains |
| 79 |
|
if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
| 80 |
|
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 ) ); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
// If PHP was compiled without support for the Filter module (very edge case) |
| 84 |
|
if ( ! function_exists( 'filter_var' ) ) { |