|  | @@ 966-973 (lines=8) @@ | 
                                                            
                                    | 963 |  | 				sprintf( __( 'Error Details: Jetpack ID is not a scalar. Do not publicly post this error message! %s', 'jetpack' ), $entity ), | 
                                                            
                                    | 964 |  | 				$entity | 
                                                            
                                    | 965 |  | 			); | 
                                                            
                                    | 966 |  | 		} elseif ( preg_match( '/[^0-9]/', $registration_response->jetpack_id ) ) { | 
                                                            
                                    | 967 |  | 			return new \WP_Error( | 
                                                            
                                    | 968 |  | 				'jetpack_id', | 
                                                            
                                    | 969 |  | 				/* translators: %s is an error message string */ | 
                                                            
                                    | 970 |  | 				sprintf( __( 'Error Details: Jetpack ID begins with a numeral. Do not publicly post this error message! %s', 'jetpack' ), $entity ), | 
                                                            
                                    | 971 |  | 				$entity | 
                                                            
                                    | 972 |  | 			); | 
                                                            
                                    | 973 |  | 		} | 
                                                            
                                    | 974 |  |  | 
                                                            
                                    | 975 |  | 		return $registration_response; | 
                                                            
                                    | 976 |  | 	} | 
                                                                                
                                |  | @@ 1862-1874 (lines=13) @@ | 
                                                            
                                    | 1859 |  | 		} | 
                                                            
                                    | 1860 |  |  | 
                                                            
                                    | 1861 |  | 		// No .test or .local domains. | 
                                                            
                                    | 1862 |  | 		if ( preg_match( '#\.(test|local)$#i', $domain ) ) { | 
                                                            
                                    | 1863 |  | 			return new \WP_Error( | 
                                                            
                                    | 1864 |  | 				'fail_domain_tld', | 
                                                            
                                    | 1865 |  | 				sprintf( | 
                                                            
                                    | 1866 |  | 					/* translators: %1$s is a domain name. */ | 
                                                            
                                    | 1867 |  | 					__( | 
                                                            
                                    | 1868 |  | 						'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', | 
                                                            
                                    | 1869 |  | 						'jetpack' | 
                                                            
                                    | 1870 |  | 					), | 
                                                            
                                    | 1871 |  | 					$domain | 
                                                            
                                    | 1872 |  | 				) | 
                                                            
                                    | 1873 |  | 			); | 
                                                            
                                    | 1874 |  | 		} | 
                                                            
                                    | 1875 |  |  | 
                                                            
                                    | 1876 |  | 		// No WPCOM subdomains. | 
                                                            
                                    | 1877 |  | 		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { | 
                                                                                
                                |  | @@ 1877-1889 (lines=13) @@ | 
                                                            
                                    | 1874 |  | 		} | 
                                                            
                                    | 1875 |  |  | 
                                                            
                                    | 1876 |  | 		// No WPCOM subdomains. | 
                                                            
                                    | 1877 |  | 		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { | 
                                                            
                                    | 1878 |  | 			return new \WP_Error( | 
                                                            
                                    | 1879 |  | 				'fail_subdomain_wpcom', | 
                                                            
                                    | 1880 |  | 				sprintf( | 
                                                            
                                    | 1881 |  | 					/* translators: %1$s is a domain name. */ | 
                                                            
                                    | 1882 |  | 					__( | 
                                                            
                                    | 1883 |  | 						'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', | 
                                                            
                                    | 1884 |  | 						'jetpack' | 
                                                            
                                    | 1885 |  | 					), | 
                                                            
                                    | 1886 |  | 					$domain | 
                                                            
                                    | 1887 |  | 				) | 
                                                            
                                    | 1888 |  | 			); | 
                                                            
                                    | 1889 |  | 		} | 
                                                            
                                    | 1890 |  |  | 
                                                            
                                    | 1891 |  | 		// If PHP was compiled without support for the Filter module (very edge case). | 
                                                            
                                    | 1892 |  | 		if ( ! function_exists( 'filter_var' ) ) { |