Changeset 47557 for trunk/src/wp-includes/class-wp-http-curl.php
- Timestamp:
- 04/09/2020 03:41:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-curl.php
r47219 r47557 239 239 return new WP_Error( 'http_request_failed', $curl_error ); 240 240 } 241 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) {241 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ), true ) ) { 242 242 curl_close( $handle ); 243 243 return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); … … 287 287 } 288 288 } 289 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) {289 if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ), true ) ) { 290 290 curl_close( $handle ); 291 291 return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) );
Note: See TracChangeset
for help on using the changeset viewer.