@@ 185-187 (lines=3) @@ | ||
182 | } |
|
183 | ||
184 | // No .test or .local domains |
|
185 | if ( preg_match( '#\.(test|local)$#i', $domain ) ) { |
|
186 | 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 ) ); |
|
187 | } |
|
188 | ||
189 | // No WPCOM subdomains |
|
190 | if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
|
@@ 190-192 (lines=3) @@ | ||
187 | } |
|
188 | ||
189 | // No WPCOM subdomains |
|
190 | if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) { |
|
191 | 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 ) ); |
|
192 | } |
|
193 | ||
194 | // If PHP was compiled without support for the Filter module (very edge case) |
|
195 | if ( ! function_exists( 'filter_var' ) ) { |