mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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] : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user