|  | @@ 1178-1185 (lines=8) @@ | 
                                                            
                                    | 1175 |  | 				sprintf( __( 'Error Details: Jetpack ID is not a scalar. Do not publicly post this error message! %s', 'jetpack' ), $entity ), | 
                                                            
                                    | 1176 |  | 				$entity | 
                                                            
                                    | 1177 |  | 			); | 
                                                            
                                    | 1178 |  | 		} elseif ( preg_match( '/[^0-9]/', $registration_response->jetpack_id ) ) { | 
                                                            
                                    | 1179 |  | 			return new \WP_Error( | 
                                                            
                                    | 1180 |  | 				'jetpack_id', | 
                                                            
                                    | 1181 |  | 				/* translators: %s is an error message string */ | 
                                                            
                                    | 1182 |  | 				sprintf( __( 'Error Details: Jetpack ID begins with a numeral. Do not publicly post this error message! %s', 'jetpack' ), $entity ), | 
                                                            
                                    | 1183 |  | 				$entity | 
                                                            
                                    | 1184 |  | 			); | 
                                                            
                                    | 1185 |  | 		} | 
                                                            
                                    | 1186 |  |  | 
                                                            
                                    | 1187 |  | 		return $registration_response; | 
                                                            
                                    | 1188 |  | 	} | 
                                                                                
                                |  | @@ 1894-1906 (lines=13) @@ | 
                                                            
                                    | 1891 |  | 		} | 
                                                            
                                    | 1892 |  |  | 
                                                            
                                    | 1893 |  | 		// No .test or .local domains. | 
                                                            
                                    | 1894 |  | 		if ( preg_match( '#\.(test|local)$#i', $domain ) ) { | 
                                                            
                                    | 1895 |  | 			return new \WP_Error( | 
                                                            
                                    | 1896 |  | 				'fail_domain_tld', | 
                                                            
                                    | 1897 |  | 				sprintf( | 
                                                            
                                    | 1898 |  | 					/* translators: %1$s is a domain name. */ | 
                                                            
                                    | 1899 |  | 					__( | 
                                                            
                                    | 1900 |  | 						'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', | 
                                                            
                                    | 1901 |  | 						'jetpack' | 
                                                            
                                    | 1902 |  | 					), | 
                                                            
                                    | 1903 |  | 					$domain | 
                                                            
                                    | 1904 |  | 				) | 
                                                            
                                    | 1905 |  | 			); | 
                                                            
                                    | 1906 |  | 		} | 
                                                            
                                    | 1907 |  |  | 
                                                            
                                    | 1908 |  | 		// No WPCOM subdomains. | 
                                                            
                                    | 1909 |  | 		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { | 
                                                                                
                                |  | @@ 1909-1921 (lines=13) @@ | 
                                                            
                                    | 1906 |  | 		} | 
                                                            
                                    | 1907 |  |  | 
                                                            
                                    | 1908 |  | 		// No WPCOM subdomains. | 
                                                            
                                    | 1909 |  | 		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) { | 
                                                            
                                    | 1910 |  | 			return new \WP_Error( | 
                                                            
                                    | 1911 |  | 				'fail_subdomain_wpcom', | 
                                                            
                                    | 1912 |  | 				sprintf( | 
                                                            
                                    | 1913 |  | 					/* translators: %1$s is a domain name. */ | 
                                                            
                                    | 1914 |  | 					__( | 
                                                            
                                    | 1915 |  | 						'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', | 
                                                            
                                    | 1916 |  | 						'jetpack' | 
                                                            
                                    | 1917 |  | 					), | 
                                                            
                                    | 1918 |  | 					$domain | 
                                                            
                                    | 1919 |  | 				) | 
                                                            
                                    | 1920 |  | 			); | 
                                                            
                                    | 1921 |  | 		} | 
                                                            
                                    | 1922 |  |  | 
                                                            
                                    | 1923 |  | 		// If PHP was compiled without support for the Filter module (very edge case). | 
                                                            
                                    | 1924 |  | 		if ( ! function_exists( 'filter_var' ) ) { |