Make WordPress Core

Changeset 20207


Ignore:
Timestamp:
03/18/2012 03:12:12 AM (13 years ago)
Author:
dd32
Message:

WP_Http: cURL: Use the parsed args $r, rather than the raw $args. Mentioned in #20219

File:
1 edited

Legend:

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

    r20183 r20207  
    10211021        }
    10221022
    1023         $is_local = isset($args['local']) && $args['local'];
    1024         $ssl_verify = isset($args['sslverify']) && $args['sslverify'];
     1023        $is_local = isset($r['local']) && $r['local'];
     1024        $ssl_verify = isset($r['sslverify']) && $r['sslverify'];
    10251025        if ( $is_local )
    10261026            $ssl_verify = apply_filters('https_local_ssl_verify', $ssl_verify);
     
    11131113
    11141114        // If no response, and It's not a HEAD request with valid headers returned
    1115         if ( 0 == strlen($theResponse) && ('HEAD' != $args['method'] || empty($this->headers)) ) {
     1115        if ( 0 == strlen($theResponse) && ('HEAD' != $r['method'] || empty($this->headers)) ) {
    11161116            if ( $curl_error = curl_error($handle) )
    11171117                return new WP_Error('http_request_failed', $curl_error);
Note: See TracChangeset for help on using the changeset viewer.