WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/22/2016 06:42:48 PM (3 years ago)
Author:
DrewAPicture
Message:

Docs: Standardize filter docs in wp-includes/class-http.php to use third-person singular verbs per the inline documentation standards for PHP.

See #36913.

File:
1 edited

Legend:

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

    r37436 r37514  
    154154            'method' => 'GET',
    155155            /**
    156              * Filter the timeout value for an HTTP request.
     156             * Filters the timeout value for an HTTP request.
    157157             *
    158158             * @since 2.7.0
     
    163163            'timeout' => apply_filters( 'http_request_timeout', 5 ),
    164164            /**
    165              * Filter the number of redirects allowed during an HTTP request.
     165             * Filters the number of redirects allowed during an HTTP request.
    166166             *
    167167             * @since 2.7.0
     
    171171            'redirection' => apply_filters( 'http_request_redirection_count', 5 ),
    172172            /**
    173              * Filter the version of the HTTP protocol used in a request.
     173             * Filters the version of the HTTP protocol used in a request.
    174174             *
    175175             * @since 2.7.0
     
    180180            'httpversion' => apply_filters( 'http_request_version', '1.0' ),
    181181            /**
    182              * Filter the user agent value sent with an HTTP request.
     182             * Filters the user agent value sent with an HTTP request.
    183183             *
    184184             * @since 2.7.0
     
    188188            'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
    189189            /**
    190              * Filter whether to pass URLs through wp_http_validate_url() in an HTTP request.
     190             * Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.
    191191             *
    192192             * @since 3.6.0
     
    218218        $r = wp_parse_args( $args, $defaults );
    219219        /**
    220          * Filter the arguments used in an HTTP request.
     220         * Filters the arguments used in an HTTP request.
    221221         *
    222222         * @since 2.7.0
     
    232232
    233233        /**
    234          * Filter whether to preempt an HTTP request's return value.
     234         * Filters whether to preempt an HTTP request's return value.
    235235         *
    236236         * Returning a non-false value from the filter will short-circuit the HTTP request and return
     
    340340
    341341        /**
    342          * Filter whether SSL should be verified for non-local requests.
     342         * Filters whether SSL should be verified for non-local requests.
    343343         *
    344344         * @since 2.8.0
     
    387387
    388388        /**
    389          * Filter the HTTP API response immediately before the response is returned.
     389         * Filters the HTTP API response immediately before the response is returned.
    390390         *
    391391         * @since 2.9.0
     
    432432
    433433        /**
    434          * Filter which HTTP transports are available and in what order.
     434         * Filters which HTTP transports are available and in what order.
    435435         *
    436436         * @since 3.7.0
     
    507507
    508508        /**
    509          * Filter the HTTP API response immediately before the response is returned.
     509         * Filters the HTTP API response immediately before the response is returned.
    510510         *
    511511         * @since 2.9.0
     
    776776        if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
    777777            /**
    778              * Filter whether to block local requests through the proxy.
     778             * Filters whether to block local requests through the proxy.
    779779             *
    780780             * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.