[wp-trac] [WordPress Trac] #25341: multiple custom post types in pre_get_post filter break body_class

WordPress Trac noreply at wordpress.org
Tue Sep 17 19:01:20 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 norcross):

 Replying to [comment:6 nacin]:
 > is_post_type_archive is only set to true when `if ( !empty(
 $qv['post_type'] ) && ! is_array( $qv['post_type'] ) ) {`. norcross, you
 reported this against "trunk" originally. Could anyone actually reproduce
 this in 3.6?  Cause it looks like [25312] broke this. See also #18614
 where I suggested a revert.

 My mistake re: trunk, it should have been 3.6.1

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25341#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list