Make WordPress Core

Ticket #9049: 9049-defaults.diff

File 9049-defaults.diff, 718 bytes (added by beaulebens, 15 years ago)

These notices should be addressed in the default args for each request. This patch addresses them that way so that ionfish's patch shouldn't ever be necessary.

  • http.php

     
    364364                        'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )  ),
    365365                        'blocking' => true,
    366366                        'headers' => array(),
     367                        'cookies' => array(),
    367368                        'body' => null,
    368369                        'compress' => false,
    369370                        'decompress' => true,
     
    660661                        'method' => 'GET', 'timeout' => 5,
    661662                        'redirection' => 5, 'httpversion' => '1.0',
    662663                        'blocking' => true,
    663                         'headers' => array(), 'body' => null
     664                        'headers' => array(), 'body' => null, 'cookies' => array()
    664665                );
    665666
    666667                $r = wp_parse_args( $args, $defaults );