Changeset 37989 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 07/06/2016 05:50:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r37674 r37989 349 349 350 350 try { 351 $re sponse = Requests::request( $url, $headers, $data, $type, $options );351 $requests_response = Requests::request( $url, $headers, $data, $type, $options ); 352 352 353 353 // Convert the response into an array 354 $response = new WP_HTTP_Requests_Response( $response, $r['filename'] ); 354 $http_response = new WP_HTTP_Requests_Response( $requests_response, $r['filename'] ); 355 $response = $http_response->to_array(); 356 357 // Add the original object to the array. 358 $response['http_response'] = $http_response; 355 359 } 356 360 catch ( Requests_Exception $e ) { … … 383 387 ), 384 388 'cookies' => array(), 389 'http_response' => null, 385 390 ); 386 391 }
Note: See TracChangeset
for help on using the changeset viewer.