@@ 1346-1358 (lines=13) @@ | ||
1343 | } |
|
1344 | ||
1345 | // No .test or .local domains. |
|
1346 | if ( preg_match( '#\.(test|local)$#i', $domain ) ) { |
|
1347 | return new \WP_Error( |
|
1348 | 'fail_domain_tld', |
|
1349 | sprintf( |
|
1350 | /* translators: %1$s is a domain name. */ |
|
1351 | __( |
|
1352 | 'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', |
|
1353 | 'jetpack' |
|
1354 | ), |
|
1355 | $domain |
|
1356 | ) |
|
1357 | ); |
|
1358 | } |
|
1359 | ||
1360 | // No WPCOM subdomains. |
|
1361 | if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
|
@@ 1361-1373 (lines=13) @@ | ||
1358 | } |
|
1359 | ||
1360 | // No WPCOM subdomains. |
|
1361 | if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { |
|
1362 | return new \WP_Error( |
|
1363 | 'fail_subdomain_wpcom', |
|
1364 | sprintf( |
|
1365 | /* translators: %1$s is a domain name. */ |
|
1366 | __( |
|
1367 | 'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', |
|
1368 | 'jetpack' |
|
1369 | ), |
|
1370 | $domain |
|
1371 | ) |
|
1372 | ); |
|
1373 | } |
|
1374 | ||
1375 | // If PHP was compiled without support for the Filter module (very edge case). |
|
1376 | if ( ! function_exists( 'filter_var' ) ) { |