Docs: Correct @type
annotation for WP_HTTP_Cookie::$expires
.
Props diddledan. Fixes #46859. git-svn-id: https://develop.svn.wordpress.org/trunk@45748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
62f6907bfa
commit
89058d3c1c
@ -37,10 +37,10 @@ class WP_Http_Cookie {
|
||||
public $value;
|
||||
|
||||
/**
|
||||
* When the cookie expires.
|
||||
* When the cookie expires. Unix timestamp or formatted date.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @var string
|
||||
* @var string|int|null
|
||||
*/
|
||||
public $expires;
|
||||
|
||||
@ -82,7 +82,7 @@ class WP_Http_Cookie {
|
||||
*
|
||||
* @type string $name Cookie name.
|
||||
* @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 $domain Optional. Domain. Default host of parsed $requested_url.
|
||||
* @type int $port Optional. Port. Default null.
|
||||
@ -246,7 +246,7 @@ class WP_Http_Cookie {
|
||||
* @return array {
|
||||
* 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 $domain Cookie domain.
|
||||
* }
|
||||
|
Loading…
Reference in New Issue
Block a user