mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user