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

WordPress Trac noreply at wordpress.org
Thu Jun 16 11:58:50 UTC 2016


#37114: Allow short-circuiting `get_post_class` for performance
-----------------------------------+-----------------------------
 Reporter:  bordoni                |      Owner:
     Type:  enhancement            |     Status:  new
 Priority:  normal                 |  Milestone:  Awaiting Review
Component:  Posts, Post Types      |    Version:  trunk
 Severity:  normal                 |   Keywords:
  Focuses:  template, performance  |
-----------------------------------+-----------------------------
 Now that was introduced the usage of custom taxonomies on the
 `get_post_class` function we should be able to filter what will happen to
 the returned classes before we carry on with the logic.

 Something just like what we do with the `pre_site_option_$option` or
 `pre_delete_post`.

 I am also providing a patch for this in the hopes that we can make this
 fit on the release 4.6

 If I'm missing anything to make this "release-ready" please let me know
 and I will gladly do it.

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


More information about the wp-trac mailing list