Make WordPress Core


Ignore:
Timestamp:
07/13/2020 10:08:16 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock corrections and improvements.

See #49572

File:
1 edited

Legend:

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

    r48109 r48462  
    238238
    239239        /**
    240          * Filters whether to preempt an HTTP request's return value.
     240         * Filters the preemptive return value of an HTTP request.
    241241         *
    242242         * Returning a non-false value from the filter will short-circuit the HTTP request and return
    243          * early with that value. A filter should return either:
     243         * early with that value. A filter should return one of:
    244244         *
    245245         *  - An array containing 'headers', 'body', 'response', 'cookies', and 'filename' elements
    246246         *  - A WP_Error instance
    247          *  - boolean false (to avoid short-circuiting the response)
     247         *  - boolean false to avoid short-circuiting the response
    248248         *
    249249         * Returning any other value may result in unexpected behaviour.
     
    251251         * @since 2.9.0
    252252         *
    253          * @param false|array|WP_Error $preempt     Whether to preempt an HTTP request's return value. Default false.
     253         * @param false|array|WP_Error $preempt     A preemptive return value of an HTTP request. Default false.
    254254         * @param array                $parsed_args HTTP request arguments.
    255255         * @param string               $url         The request URL.
Note: See TracChangeset for help on using the changeset viewer.