[wp-trac] [WordPress Trac] #25341: multiple custom post types in pre_get_post filter break body_class
WordPress Trac
noreply at wordpress.org
Wed Oct 9 19:10:44 UTC 2013
#25341: multiple custom post types in pre_get_post filter break body_class
------------------------------+-----------------------------
Reporter: norcross | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.7
Component: Template | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------------
Comment (by nacin):
Okay, the direction of this fix is proper. But, we should only add one
post type as a body class — the rest of post type archives is limited to
the first post type listed, as it is specifically designed to not be for
multiple post types. That also has the result of not being a major
behavior change, while optionally allowing for multiple body classes
later.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25341#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list