Changeset 20370
- Timestamp:
- 04/05/2012 11:58:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r20208 r20370 1111 1111 1112 1112 // If no response 1113 if ( 0 == strlen( $theResponse) && empty( $theHeaders ) ) {1114 if ( $curl_error = curl_error( $handle) )1115 return new WP_Error( 'http_request_failed', $curl_error);1116 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302) ) )1117 return new WP_Error( 'http_request_failed', __('Too many redirects.'));1113 if ( 0 == strlen( $theResponse ) && empty( $theHeaders->headers ) ) { 1114 if ( $curl_error = curl_error( $handle ) ) 1115 return new WP_Error( 'http_request_failed', $curl_error ); 1116 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) 1117 return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); 1118 1118 } 1119 1119
Note: See TracChangeset
for help on using the changeset viewer.