Changeset 45590 for trunk/src/wp-includes/class-wp-http-curl.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-curl.php
r43571 r45590 236 236 curl_exec( $handle ); 237 237 238 if ( $curl_error = curl_error( $handle ) ) { 238 $curl_error = curl_error( $handle ); 239 if ( $curl_error ) { 239 240 curl_close( $handle ); 240 241 return new WP_Error( 'http_request_failed', $curl_error ); … … 282 283 } 283 284 } else { 284 if ( $curl_error = curl_error( $handle ) ) { 285 $curl_error = curl_error( $handle ); 286 if ( $curl_error ) { 285 287 curl_close( $handle ); 286 288 return new WP_Error( 'http_request_failed', $curl_error ); … … 308 310 309 311 // Handle redirects. 310 if ( false !== ( $redirect_response = WP_HTTP::handle_redirects( $url, $r, $response ) ) ) { 312 $redirect_response = WP_HTTP::handle_redirects( $url, $r, $response ); 313 if ( false !== $redirect_response ) { 311 314 return $redirect_response; 312 315 }
Note: See TracChangeset
for help on using the changeset viewer.