Make WordPress Core

Ticket #26049: 26049-1.patch

File 26049-1.patch, 1.5 KB (added by kraftbj, 11 years ago)

Patch of do_action* hooks documented. TODO: Filters

  • src/wp-includes/class-http.php

     
    265265
    266266                $response = $transports[$class]->request( $url, $args );
    267267
     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
    268279                do_action( 'http_api_debug', $response, 'response', $class, $args, $url );
    269280
    270281                if ( is_wp_error( $response ) )
     
    12251236                else
    12261237                        curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 );
    12271238
    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
    12301249                do_action_ref_array( 'http_api_curl', array(&$handle) );
    12311250
    12321251                // We don't need to return the body, so don't. Just execute request and return.