Fix warning in HTTP Header parsing where response message is not specified. Props hakre. Fixes #16885
git-svn-id: https://develop.svn.wordpress.org/trunk@17599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6fef66fc89
commit
7b08c38074
@ -362,7 +362,9 @@ class WP_Http {
|
||||
continue;
|
||||
|
||||
if ( false === strpos($tempheader, ':') ) {
|
||||
list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);
|
||||
$stack = explode(' ', $tempheader, 3);
|
||||
$stack[] = '';
|
||||
list( , $response['code'], $response['message']) = $stack;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user