[wp-trac] [WordPress Trac] #63279: Improve `media_library_months_with_files` inside `wp_enqueue_media()`

WordPress Trac noreply at wordpress.org
Mon Feb 23 15:26:21 UTC 2026


#63279: Improve `media_library_months_with_files` inside `wp_enqueue_media()`
-------------------------+------------------------------
 Reporter:  apermo       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  4.7.4
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by apermo):

 @spacedmonkey I opted to do it with a transient. The transient will
 increase performance for everyone. If a user has an object cache, it will
 automatically be stored there.

 Let me know if you can follow that approach, if so, I'll continue and
 provide tests for clearing the transient and that the new function works
 as intended.

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


More information about the wp-trac mailing list