@@ 1310-1322 (lines=13) @@ | ||
1307 | } |
|
1308 | ||
1309 | // No .test or .local domains. |
|
1310 | if ( preg_match( '#\.(test|local)$#i', $domain ) ) { |
|
1311 | return new \WP_Error( |
|
1312 | 'fail_domain_tld', |
|
1313 | sprintf( |
|
1314 | /* translators: %1$s is a domain name. */ |
|
1315 | __( |
|
1316 | 'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', |
|
1317 | 'jetpack' |
|
1318 | ), |
|
1319 | $domain |
|
1320 | ) |
|
1321 | ); |
|
1322 | } |
|
1323 | ||
1324 | // No WPCOM subdomains. |
|
1325 | if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
|
@@ 1325-1337 (lines=13) @@ | ||
1322 | } |
|
1323 | ||
1324 | // No WPCOM subdomains. |
|
1325 | if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
|
1326 | return new \WP_Error( |
|
1327 | 'fail_subdomain_wpcom', |
|
1328 | sprintf( |
|
1329 | /* translators: %1$s is a domain name. */ |
|
1330 | __( |
|
1331 | 'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', |
|
1332 | 'jetpack' |
|
1333 | ), |
|
1334 | $domain |
|
1335 | ) |
|
1336 | ); |
|
1337 | } |
|
1338 | ||
1339 | // If PHP was compiled without support for the Filter module (very edge case). |
|
1340 | if ( ! function_exists( 'filter_var' ) ) { |