Ticket #26049: 26049-1.patch
File 26049-1.patch, 1.5 KB (added by , 11 years ago) |
---|
-
src/wp-includes/class-http.php
265 265 266 266 $response = $transports[$class]->request( $url, $args ); 267 267 268 /** 269 * Fires after an HTTP API response is recieved and before the response is returned. 270 * 271 * @since 2.8.0 272 * 273 * @param array|object $response HTTP Response or WP_Error object. 274 * @param string $class HTTP transport used. 275 * @param array $args Requested arguments 276 * @param string $url Requested URL. 277 */ 278 268 279 do_action( 'http_api_debug', $response, 'response', $class, $args, $url ); 269 280 270 281 if ( is_wp_error( $response ) ) … … 1225 1236 else 1226 1237 curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 ); 1227 1238 1228 // Cookies are not handled by the HTTP API currently. Allow for plugin authors to handle it 1229 // themselves... Although, it is somewhat pointless without some reference. 1239 /** 1240 * Fires before cURL process is executed. 1241 * 1242 * Cookies are not handled by the HTTP API currently. Allow for plugin authors to handle it themselves... Although, it is somewhat pointless without some reference. 1243 * 1244 * @since 2.8.0 1245 * 1246 * @param array $handle cURL Options set using curl_setopt. 1247 */ 1248 1230 1249 do_action_ref_array( 'http_api_curl', array(&$handle) ); 1231 1250 1232 1251 // We don't need to return the body, so don't. Just execute request and return.