[wp-trac] [WordPress Trac] #12704: Multiple post_types can no longer be specified in query

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 7 23:08:45 UTC 2010


#12704: Multiple post_types can no longer be specified in query
-----------------------------+----------------------------------------------
 Reporter:  mitchoyoshitaka  |       Owner:  dd32    
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  3.0     
Component:  Query            |     Version:  3.0     
 Severity:  normal           |    Keywords:          
-----------------------------+----------------------------------------------

Comment(by dd32):

 * Ignoring the post_type_object->query_var
  * Not accounting for cases where the query may be array( post_type =>
 fruits, name => apple) (instead of query_var => apple)

 Both of those combined seem to be leading to that, Instead of $_post_type
 it should be checking the object query var. etc. If someone doesn't get to
 it before i get home from work, I'll take another look (~9hours).

 changing that if branch will/may have other implications for custom post
 querying.

 I'm tempted to change the current loop from what it currently is, to a
 separate block, and filling name/pagename respectivly and letting those
 branches take care of the selection, should reduce duplication and fix
 this issue. - But I'll need to look at the code closer.

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


More information about the wp-trac mailing list