[wp-trac] [WordPress Trac] #52220: Weekly archives/week 53 incorrect crossing over a year change
WordPress Trac
noreply at wordpress.org
Tue Jan 5 15:13:04 UTC 2021
#52220: Weekly archives/week 53 incorrect crossing over a year change
--------------------------+------------------------------
Reporter: sugeneris | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.6
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Rarst):
Since this attempts to be consistent with `wp_get_archives()` I went to
look what happens there and it's more of the same mess. If you request
weekly archives you get last week output ''twice'':
1. December 28, 2020–January 3, 2021 pointing to `/?m=2021&w=0`(which is
broken and just queries 2021 without week limit)
2. December 28, 2020–January 3, 2021 pointing to `/?m=2020&w=53` (which
works but "loses" days, as above)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52220#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list