[wp-trac] [WordPress Trac] #63230: Correct expiration time documentation for `wp_set_auth_cookie()`
WordPress Trac
noreply at wordpress.org
Fri Apr 4 15:52:23 UTC 2025
#63230: Correct expiration time documentation for `wp_set_auth_cookie()`
------------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-docs | Focuses: docs
------------------------------------+---------------------
Comment (by siliconforks):
Replying to [comment:6 siliconforks]:
> The value of `$expired` in `wp_parse_auth_cookie` should never be 0
because it is using the value stored in the cookie itself rather than the
cookie's expiration time.
Correction: I meant `wp_validate_auth_cookie` here: `$expired` in
`wp_validate_auth_cookie` should never be 0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63230#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list