[wp-trac] [WordPress Trac] #52220: Weekly archives/week 53 incorrect crossing over a year change

WordPress Trac noreply at wordpress.org
Mon Jan 4 20:30:48 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 sugeneris):

 http://betteridgeslaw.com/2020/?w=52
 http://betteridgeslaw.com/2020/?w=53
 http://betteridgeslaw.com/2021/?w=1
 I don't see how it'd be a factor but since it's custom, those are via an
 `add_rewrite_rule('^week/([0-9]+)/([0-9]+)/?','index.php?m=$matches[1]&w=$matches[2]','top');`

 As far as whether this is a change in behavior, I only started using the
 weeklies in 2020 and this is the only place I've seen a discrepancy so
 couldn't say, unfortunately. My comment about it working for past year
 changes is just from trying to confirm the behavior this time around.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52220#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list