[wp-trac] [WordPress Trac] #58757: Performance issue has_content method in WP_Widget_Media_Gallery

WordPress Trac noreply at wordpress.org
Fri Jul 7 17:10:17 UTC 2023


#58757: Performance issue has_content method in WP_Widget_Media_Gallery
--------------------------+----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  6.4
Component:  Widgets       |    Version:
 Severity:  normal        |   Keywords:  good-first-bug
  Focuses:  performance   |
--------------------------+----------------------------
 The has_content method in WP_Widget_Media_Gallery, does not prime post
 caches before calling `get_post_type`. Call `_prime_post_caches` before
 foreach loop would improve performance.

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


More information about the wp-trac mailing list