[wp-trac] [WordPress Trac] #37114: Allow short-circuiting `get_post_class` for performance
WordPress Trac
noreply at wordpress.org
Thu Oct 6 17:28:09 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
-------------------------------------------------+-------------------------
Comment (by bordoni):
As per what was talked about on #core on Slack:
(https://wordpress.slack.com/archives/core/p1475774672004836)
> I agree with you there that the classes can be discovered by the
`WP_Post` object, but I was thinking about the classes that are passed
initially. E.g.: `get_post_class( 'something-fancy' )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37114#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list