[wp-trac] [WordPress Trac] #24204: Tax query forces multiple post type treatment due to array check

WordPress Trac noreply at wordpress.org
Sat Apr 27 01:28:35 UTC 2013


#24204: Tax query forces multiple post type treatment due to array check
--------------------------+---------------------
 Reporter:  nacin         |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.6
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"24115"]:
 {{{
 #!CommitTicketReference repository="" revision="24115"
 WP_Query: If the post_type QV is an array with only one element, don't
 treat it as a multiple post type query.

 If there is only one post type used by all taxonomies for a tax query, set
 the post type to the string.

 fixes #24204.
 }}}

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


More information about the wp-trac mailing list