mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix notice. Props sivel. fixes #9068
git-svn-id: http://svn.automattic.com/wordpress/trunk@10633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c169009f1
commit
ffb28cf66d
@ -578,7 +578,7 @@ class WP_Http {
|
||||
* @param array $r Full array of args passed into ::request()
|
||||
*/
|
||||
function buildCookieHeader( &$r ) {
|
||||
if ( count( $r['cookies'] ) ) {
|
||||
if ( isset($r['cookies']) && count( $r['cookies'] ) ) {
|
||||
$cookies_header = '';
|
||||
foreach ( $r['cookies'] as $cookie ) {
|
||||
$cookies_header .= $cookie->getHeaderValue() . '; ';
|
||||
|
Loading…
Reference in New Issue
Block a user