Pass the URL to the 'http_request_args' filter, props DD32, fixes #8780
git-svn-id: https://develop.svn.wordpress.org/trunk@10294 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab8822bdcd
commit
d049036ceb
@ -236,7 +236,7 @@ class WP_Http {
|
||||
);
|
||||
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
$r = apply_filters( 'http_request_args', $r );
|
||||
$r = apply_filters( 'http_request_args', $r, $url );
|
||||
|
||||
if ( is_null( $r['headers'] ) )
|
||||
$r['headers'] = array();
|
||||
|
Loading…
Reference in New Issue
Block a user