From 6a7acd8252b08e9c6f81921fa708e26468249fa7 Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@17600 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 8a68ebb726..683552d5f0 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] : ''); } /**