[wp-trac] [WordPress Trac] #34093: New filter: `get_calendar_post_type` in get_calendar()

WordPress Trac noreply at wordpress.org
Mon Mar 3 23:51:38 UTC 2025


#34093: New filter: `get_calendar_post_type` in get_calendar()
--------------------------------------+-----------------------
 Reporter:  sebastian.pisula          |       Owner:  audrasjb
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.8
Component:  Widgets                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by peterwilsoncc):

 I got interested and started writing some additional tests while looking
 at the date issue in the original tests.

 It appears there are some caching issues as the `post_type` and `initial`
 parameters are not accounted for when generating the cache key, so there's
 a few minor fixes to the source code needed.

 There's a couple of failing tests in the [https://github.com/WordPress
 /wordpress-develop/pull/8447 pull request linked to this ticket].

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


More information about the wp-trac mailing list