mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
HTTP API: Add the URL as a paramter to various HTTP related filters.
Props paulschreiber, purnendu Fixes #42186 git-svn-id: https://develop.svn.wordpress.org/trunk@42682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -97,13 +97,15 @@ class WP_Http_Streams {
|
||||
* Filters whether SSL should be verified for local requests.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 5.0.0 The `$url` parameter was added.
|
||||
*
|
||||
* @param bool $ssl_verify Whether to verify the SSL connection. Default true.
|
||||
* @param bool $ssl_verify Whether to verify the SSL connection. Default true.
|
||||
* @param string $url The request URL.
|
||||
*/
|
||||
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify );
|
||||
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
|
||||
} elseif ( ! $is_local ) {
|
||||
/** This filter is documented in wp-includes/class-http.php */
|
||||
$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify );
|
||||
$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
|
||||
}
|
||||
|
||||
$proxy = new WP_HTTP_Proxy();
|
||||
|
||||
Reference in New Issue
Block a user