Make WordPress Core

Changeset 25176


Ignore:
Timestamp:
08/30/2013 02:10:34 AM (12 years ago)
Author:
dd32
Message:

WP_HTTP: Make the new 2nd parameter to WP_HTP::processHeaders() as optional. See #21182. Fixes #25179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r25155 r25176  
    372372     *                  Then a numbered array is returned as the value of that header-key.
    373373     */
    374     public static function processHeaders( $headers, $url ) {
     374    public static function processHeaders( $headers, $url = '' ) {
    375375        // split headers, one per array element
    376376        if ( is_string($headers) ) {
     
    17091709     */
    17101710    function __construct( $data, $requested_url = '' ) {
    1711         $arrURL = @parse_url( $requested_url );
     1711        if ( $requested_url )
     1712            $arrURL = @parse_url( $requested_url );
    17121713        if ( isset( $arrURL['host'] ) )
    17131714            $this->domain = $arrURL['host'];
Note: See TracChangeset for help on using the changeset viewer.