mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Add cookies arg to defaults to avoid warnings. Props beaulebens. fixes #9049
git-svn-id: http://svn.automattic.com/wordpress/trunk@10563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fbba337987
commit
a114c10ca9
@ -364,6 +364,7 @@ class WP_Http {
|
|||||||
'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
|
'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
|
||||||
'blocking' => true,
|
'blocking' => true,
|
||||||
'headers' => array(),
|
'headers' => array(),
|
||||||
|
'cookies' => array(),
|
||||||
'body' => null,
|
'body' => null,
|
||||||
'compress' => false,
|
'compress' => false,
|
||||||
'decompress' => true,
|
'decompress' => true,
|
||||||
@ -660,7 +661,7 @@ class WP_Http_Fsockopen {
|
|||||||
'method' => 'GET', 'timeout' => 5,
|
'method' => 'GET', 'timeout' => 5,
|
||||||
'redirection' => 5, 'httpversion' => '1.0',
|
'redirection' => 5, 'httpversion' => '1.0',
|
||||||
'blocking' => true,
|
'blocking' => true,
|
||||||
'headers' => array(), 'body' => null
|
'headers' => array(), 'body' => null, 'cookies' => array()
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = wp_parse_args( $args, $defaults );
|
$r = wp_parse_args( $args, $defaults );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user