Make WordPress Core


Ignore:
Timestamp:
10/07/2019 07:06:41 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous inline docs corrections and improvements.

See #47110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r46232 r46424  
    134134     *                                             need to be separately decompressed. Default true.
    135135     *     @type bool         $sslverify           Whether to verify SSL for the request. Default true.
    136      *     @type string       sslcertificates      Absolute path to an SSL certificate .crt file.
     136     *     @type string       $sslcertificates     Absolute path to an SSL certificate .crt file.
    137137     *                                             Default ABSPATH . WPINC . '/certificates/ca-bundle.crt'.
    138138     *     @type bool         $stream              Whether to stream to a file. If set to true and no filename was
     
    216216        $args = wp_parse_args( $args );
    217217
    218         // By default, Head requests do not cause redirections.
     218        // By default, HEAD requests do not cause redirections.
    219219        if ( isset( $args['method'] ) && 'HEAD' == $args['method'] ) {
    220220            $defaults['redirection'] = 0;
     
    251251         * @since 2.9.0
    252252         *
    253          * @param false|array|WP_Error $preempt Whether to preempt an HTTP request's return value. Default false.
    254          * @param array                $parsed_args        HTTP request arguments.
    255          * @param string               $url      The request URL.
     253         * @param false|array|WP_Error $preempt     Whether to preempt an HTTP request's return value. Default false.
     254         * @param array                $parsed_args HTTP request arguments.
     255         * @param string               $url         The request URL.
    256256         */
    257257        $pre = apply_filters( 'pre_http_request', false, $parsed_args, $url );
     
    410410         * @since 2.8.0
    411411         *
    412          * @param array|WP_Error $response HTTP response or WP_Error object.
    413          * @param string         $context  Context under which the hook is fired.
    414          * @param string         $class    HTTP transport used.
    415          * @param array          $parsed_args        HTTP request arguments.
    416          * @param string         $url      The request URL.
     412         * @param array|WP_Error $response    HTTP response or WP_Error object.
     413         * @param string         $context     Context under which the hook is fired.
     414         * @param string         $class       HTTP transport used.
     415         * @param array          $parsed_args HTTP request arguments.
     416         * @param string         $url         The request URL.
    417417         */
    418418        do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
     
    439439         * @since 2.9.0
    440440         *
    441          * @param array  $response HTTP response.
    442          * @param array  $parsed_args        HTTP request arguments.
    443          * @param string $url      The request URL.
     441         * @param array  $response    HTTP response.
     442         * @param array  $parsed_args HTTP request arguments.
     443         * @param string $url         The request URL.
    444444         */
    445445        return apply_filters( 'http_response', $response, $parsed_args, $url );
     
    891891            return ! preg_match( $wildcard_regex, $check['host'] );
    892892        } else {
    893             return ! in_array( $check['host'], $accessible_hosts ); //Inverse logic, If it's in the array, then we can't access it.
     893            return ! in_array( $check['host'], $accessible_hosts ); // Inverse logic, if it's in the array, then don't block it.
    894894        }
    895895
     
    990990
    991991    /**
    992      * Handles HTTP Redirects and follows them if appropriate.
     992     * Handles an HTTP redirect and follows it if appropriate.
    993993     *
    994994     * @since 3.7.0
Note: See TracChangeset for help on using the changeset viewer.