[wp-trac] [WordPress Trac] #59027: Weekly wp_get_archives has invalid link (link for month instead of year)

WordPress Trac noreply at wordpress.org
Wed Aug 9 13:43:54 UTC 2023


#59027: Weekly wp_get_archives has invalid link (link for month instead of year)
-------------------------------+-----------------------------
 Reporter:  filipac            |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:  has-patch
  Focuses:                     |
-------------------------------+-----------------------------
 If you call `wp_get_archives` function with `type` set to weekly, the
 resulted link contains two parameters: m => year, w => week.

 This results in unwanted behaviour, as you get a month like `2023` which
 is invalid.

 The link should contain ?y={year}&w={week}.

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


More information about the wp-trac mailing list