Pass the URL to the 'http_request_args' filter, props DD32, fixes #8780
git-svn-id: http://svn.automattic.com/wordpress/trunk@10294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d1a60e14c
commit
970a1c8dc6
|
@ -236,7 +236,7 @@ class WP_Http {
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = wp_parse_args( $args, $defaults );
|
$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'] ) )
|
if ( is_null( $r['headers'] ) )
|
||||||
$r['headers'] = array();
|
$r['headers'] = array();
|
||||||
|
|
Loading…
Reference in New Issue