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