Docs: Correct `@type` annotation for `WP_HTTP_Cookie::$expires`.
Props diddledan. Fixes #46859. Built from https://develop.svn.wordpress.org/trunk@45748 git-svn-id: http://core.svn.wordpress.org/trunk@45559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f7b8423b12
commit
bbf84bccf7
|
@ -37,10 +37,10 @@ class WP_Http_Cookie {
|
||||||
public $value;
|
public $value;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When the cookie expires.
|
* When the cookie expires. Unix timestamp or formatted date.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @var string
|
* @var string|int|null
|
||||||
*/
|
*/
|
||||||
public $expires;
|
public $expires;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class WP_Http_Cookie {
|
||||||
*
|
*
|
||||||
* @type string $name Cookie name.
|
* @type string $name Cookie name.
|
||||||
* @type mixed $value Value. Should NOT already be urlencoded.
|
* @type mixed $value Value. Should NOT already be urlencoded.
|
||||||
* @type string|int $expires Optional. Unix timestamp or formatted date. Default null.
|
* @type string|int|null $expires Optional. Unix timestamp or formatted date. Default null.
|
||||||
* @type string $path Optional. Path. Default '/'.
|
* @type string $path Optional. Path. Default '/'.
|
||||||
* @type string $domain Optional. Domain. Default host of parsed $requested_url.
|
* @type string $domain Optional. Domain. Default host of parsed $requested_url.
|
||||||
* @type int $port Optional. Port. Default null.
|
* @type int $port Optional. Port. Default null.
|
||||||
|
@ -246,7 +246,7 @@ class WP_Http_Cookie {
|
||||||
* @return array {
|
* @return array {
|
||||||
* List of attributes.
|
* List of attributes.
|
||||||
*
|
*
|
||||||
* @type string $expires When the cookie expires.
|
* @type string|int|null $expires When the cookie expires. Unix timestamp or formatted date.
|
||||||
* @type string $path Cookie URL path.
|
* @type string $path Cookie URL path.
|
||||||
* @type string $domain Cookie domain.
|
* @type string $domain Cookie domain.
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45747';
|
$wp_version = '5.3-alpha-45748';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue