WordPress.org

Make WordPress Core

Ticket #9049: 9049.notices.diff

File 9049.notices.diff, 531 bytes (added by ionfish, 9 years ago)
  • wp-includes/http.php

     
    573573         * @param array $r Full array of args passed into ::request()
    574574         */
    575575        function buildCookieHeader( &$r ) {
    576                 if ( count( $r['cookies'] ) ) {
     576                if ( isset($r['cookies']) && count( $r['cookies'] ) > 0 ) {
    577577                        $cookies_header = '';
    578578                        foreach ( $r['cookies'] as $cookie ) {
    579579                                $cookies_header .= $cookie->getHeaderValue() . '; ';