From 3a82ccc318ce602e3060743e2974432b9d6b3791 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 12 Feb 2009 20:37:23 +0000 Subject: [PATCH] Add cookies arg to defaults to avoid warnings. Props beaulebens. fixes #9049 git-svn-id: https://develop.svn.wordpress.org/trunk@10563 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/http.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 7503946c68..acb497dea5 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -364,6 +364,7 @@ class WP_Http { 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ), 'blocking' => true, 'headers' => array(), + 'cookies' => array(), 'body' => null, 'compress' => false, 'decompress' => true, @@ -660,7 +661,7 @@ class WP_Http_Fsockopen { 'method' => 'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, - 'headers' => array(), 'body' => null + 'headers' => array(), 'body' => null, 'cookies' => array() ); $r = wp_parse_args( $args, $defaults );