WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

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

    r46970 r47060  
    10051005     * @param array  $args     The arguments which were used to make the request.
    10061006     * @param array  $response The response of the HTTP request.
    1007      * @return false|WP_Error|array False if no redirect is present, a WP_Error object if there's an error, or an HTTP
    1008      *                              API response array if the redirect is successfully followed.
     1007     * @return array|false|WP_Error An HTTP API response array if the redirect is successfully followed,
     1008     *                              false if no redirect is present, or a WP_Error object if there's an error.
    10091009     */
    10101010    public static function handle_redirects( $url, $args, $response ) {
Note: See TracChangeset for help on using the changeset viewer.