Fix notice. Props sivel. fixes #9068
git-svn-id: https://develop.svn.wordpress.org/trunk@10633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e9411943ee
commit
4fecb1a03d
@ -578,7 +578,7 @@ class WP_Http {
|
|||||||
* @param array $r Full array of args passed into ::request()
|
* @param array $r Full array of args passed into ::request()
|
||||||
*/
|
*/
|
||||||
function buildCookieHeader( &$r ) {
|
function buildCookieHeader( &$r ) {
|
||||||
if ( count( $r['cookies'] ) ) {
|
if ( isset($r['cookies']) && count( $r['cookies'] ) ) {
|
||||||
$cookies_header = '';
|
$cookies_header = '';
|
||||||
foreach ( $r['cookies'] as $cookie ) {
|
foreach ( $r['cookies'] as $cookie ) {
|
||||||
$cookies_header .= $cookie->getHeaderValue() . '; ';
|
$cookies_header .= $cookie->getHeaderValue() . '; ';
|
||||||
|
Loading…
Reference in New Issue
Block a user