From 864330c766a9b2937506c1422a5ce585bd4555f0 Mon Sep 17 00:00:00 2001 From: dd32 Date: Tue, 5 Apr 2011 06:41:51 +0000 Subject: [PATCH] explode always returns an array in this context. Props hakre. Fixes #16958 git-svn-id: http://svn.automattic.com/wordpress/trunk@17600 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 8a68ebb72..683552d5f 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -316,7 +316,7 @@ class WP_Http { function processResponse($strResponse) { $res = explode("\r\n\r\n", $strResponse, 2); - return array('headers' => isset($res[0]) ? $res[0] : array(), 'body' => isset($res[1]) ? $res[1] : ''); + return array('headers' => $res[0], 'body' => isset($res[1]) ? $res[1] : ''); } /**