WordPress.org

Make WordPress Core

Ticket #20389: 20389.patch

File 20389.patch, 645 bytes (added by kurtpayne, 3 years ago)
  • wordpress/wp-includes/class-http.php

     
    11101110                        $theBody = $theResponse; 
    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 ); 
    11161116                        if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) )