WordPress.org

Make WordPress Core

Changeset 20399


Ignore:
Timestamp:
04/07/12 07:16:30 (3 years ago)
Author:
dd32
Message:

WP_HTTP: Curl: $theHeaders is an array, not an object, introduced in [20370]. Props kurtpayne. Fixes #20389 See #20219

File:
1 edited

Legend:

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

    r20373 r20399  
    11111111 
    11121112        // If no response 
    1113         if ( 0 == strlen( $theResponse ) && empty( $theHeaders->headers ) ) { 
     1113        if ( 0 == strlen( $theResponse ) && empty( $theHeaders['headers'] ) ) { 
    11141114            if ( $curl_error = curl_error( $handle ) ) 
    11151115                return new WP_Error( 'http_request_failed', $curl_error ); 
Note: See TracChangeset for help on using the changeset viewer.