[wp-trac] [WordPress Trac] #37114: Allow short-circuiting `get_post_class` for performance

WordPress Trac noreply at wordpress.org
Tue Sep 24 06:28:58 UTC 2019

#37114: Allow short-circuiting `get_post_class` for performance
 Reporter:  bordoni            |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.2
 Severity:  normal             |  Resolution:
 Keywords:  has-patch commit   |     Focuses:  template, performance

Comment (by invelity):

 Having 800 terms in a taxonomy, removing the taxonomy loop sped up listing
 of 20 posts by 68% in our scenario. Having a filter available would solve
 the issue for us.

Ticket URL: <https://core.trac.wordpress.org/ticket/37114#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list