[wp-trac] [WordPress Trac] #37114: Allow short-circuiting `get_post_class` for performance
WordPress Trac
noreply at wordpress.org
Sat Oct 1 15:14:13 UTC 2016
#37114: Allow short-circuiting `get_post_class` for performance
-------------------------------------------------+-------------------------
Reporter: bordoni | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Posts, Post Types | Review
Severity: normal | Version: 4.6
Keywords: has-patch dev-feedback needs- | Resolution:
testing | Focuses: template,
| performance
-------------------------------------------------+-------------------------
Changes (by desrosj):
* keywords: has-patch => has-patch dev-feedback needs-testing
Comment:
Attached a refreshed patch. In addition to @sebastian.pisula's filter
(which would be a good filter for hiding classes for specific posts or
post types), I added a `register_taxonomy()` parameter (on by default) for
disabling classes on a per taxonomy basis.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37114#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list