Docs: Correct `@type` for `timeout` argument in `WP_Http::request()`.
Props georgestephanis, benedictsinger. Fixes #49005. Built from https://develop.svn.wordpress.org/trunk@46970 git-svn-id: http://core.svn.wordpress.org/trunk@46770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18b0cd4f7d
commit
a79636f82a
|
@ -109,7 +109,7 @@ class WP_Http {
|
|||
* 'TRACE', 'OPTIONS', or 'PATCH'.
|
||||
* Some transports technically allow others, but should not be
|
||||
* assumed. Default 'GET'.
|
||||
* @type int $timeout How long the connection should stay open in seconds. Default 5.
|
||||
* @type float $timeout How long the connection should stay open in seconds. Default 5.
|
||||
* @type int $redirection Number of allowed redirects. Not supported by all transports
|
||||
* Default 5.
|
||||
* @type string $httpversion Version of the HTTP protocol to use. Accepts '1.0' and '1.1'.
|
||||
|
@ -155,7 +155,7 @@ class WP_Http {
|
|||
* @since 2.7.0
|
||||
* @since 5.1.0 The `$url` parameter was added.
|
||||
*
|
||||
* @param int $timeout_value Time in seconds until a request times out. Default 5.
|
||||
* @param float $timeout_value Time in seconds until a request times out. Default 5.
|
||||
* @param string $url The request URL.
|
||||
*/
|
||||
'timeout' => apply_filters( 'http_request_timeout', 5, $url ),
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-46969';
|
||||
$wp_version = '5.4-alpha-46970';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue