[wp-trac] [WordPress Trac] #61421: Exipre comment author cookies after 1 year (rather than 0.95129375951 of a year)

WordPress Trac noreply at wordpress.org
Thu Jun 13 02:52:19 UTC 2024


#61421: Exipre comment author cookies after 1 year (rather than 0.95129375951 of a
year)
---------------------------+-----------------------------
 Reporter:  peterwilsoncc  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  low            |  Milestone:  Awaiting Review
Component:  Comments       |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+-----------------------------
 The comment author, comment email and comment URL cookies are currently
 set by `wp_set_comment_cookies()` to expire after `30000000` seconds.

 I expect this value was chosen before the helper constants `[time
 span]_IN_SECONDS` existed. I also expect value was a rounding error on
 aiming for cookies to remain valid for one year.

 To improve the readability of the code, it would nice to set the default
 lifetime of the cookies to `YEAR_IN_SECONDS`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list