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