Changeset 37436 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 05/16/2016 06:11:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r37429 r37436 350 350 try { 351 351 $response = Requests::request( $url, $headers, $data, $type, $options ); 352 353 // Convert the response into an array 354 $response = new WP_HTTP_Requests_Response( $response, $r['filename'] ); 352 355 } 353 356 catch ( Requests_Exception $e ) { … … 383 386 } 384 387 385 // Convert the response into an array386 $data = new WP_HTTP_Requests_Response( $response, $r['filename'] );387 388 388 /** 389 389 * Filter the HTTP API response immediately before the response is returned. … … 391 391 * @since 2.9.0 392 392 * 393 * @param array $ dataHTTP response.394 * @param array $r HTTP request arguments.395 * @param string $url The request URL.393 * @param array $response HTTP response. 394 * @param array $r HTTP request arguments. 395 * @param string $url The request URL. 396 396 */ 397 return apply_filters( 'http_response', $ data, $r, $url );397 return apply_filters( 'http_response', $response, $r, $url ); 398 398 } 399 399
Note: See TracChangeset
for help on using the changeset viewer.