Make WordPress Core

Changeset 46970


Ignore:
Timestamp:
12/17/2019 03:23:33 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @type for timeout argument in WP_Http::request().

Props georgestephanis, benedictsinger.
Fixes #49005.

File:
1 edited

Legend:

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

    r46692 r46970  
    110110     *                                             Some transports technically allow others, but should not be
    111111     *                                             assumed. Default 'GET'.
    112      *     @type int          $timeout             How long the connection should stay open in seconds. Default 5.
     112     *     @type float        $timeout             How long the connection should stay open in seconds. Default 5.
    113113     *     @type int          $redirection         Number of allowed redirects. Not supported by all transports
    114114     *                                             Default 5.
     
    156156             * @since 5.1.0 The `$url` parameter was added.
    157157             *
    158              * @param int    $timeout_value Time in seconds until a request times out. Default 5.
     158             * @param float  $timeout_value Time in seconds until a request times out. Default 5.
    159159             * @param string $url           The request URL.
    160160             */
Note: See TracChangeset for help on using the changeset viewer.