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

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 27 00:12:55 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 mitchoyoshitaka):

 Replying to [comment:1 dd32]:
 > > I wasn't able to create a fix which also incorporates dd32's additions
 as I'm not entirely sure what the point of the $q[ $q['post_type'] ]
 business is.
 >
 > This is for handling queries such as /wiki/this-is/a/page/  which
 resolves to ?wiki=this-is/a/page which will result in $q[ $q['post_type']
 ] = this-is/a/page

 Hmm, I see... so is it correct to say that that `$q[ $q['post_type'] ]`
 mapping is only necessary for queries based on URL like your example?

 Thanks dd32.

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


More information about the wp-trac mailing list