wp-content/plugins/wordpress-seo/frontend/class-opengraph-image.php
/**
	 * Determines whether the passed URL is considered valid.
	 *
	 * @param string $url The URL to check.
	 *
	 * @return bool Whether or not the URL is a valid image.
	 */
Determines whether the passed URL is considered valid.
@param string $url The URL to check.

@return bool Whether or not the URL is a valid image.
Determines whether the passed URL is considered valid . @param string $url The URL to check . @return bool Whether or not the URL is a valid image .
protected function is_valid_image_url( $url ) {
		if ( ! is_string( $url ) ) {
			return false;
		}
		$image_extension = $this->get_extension_from_url( $url );
		return in_array( $image_extension, $this->valid_image_extensions, true );
	}
protected function is_valid_image_url ( $ url ) { if ( ! is_string ( $ url ) ) { return false ; } $ image_extension = $ this -> get_extension_from_url ( $ url ) ; return in_array ( $ image_extension , $ this -> valid_image_extensions , true ) ; }
Determines whether the passed URL is considered valid.
Determines whether the passed URL is considered valid .