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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 25 08:46:12 UTC 2010


#12704: Multiple post_types can no longer be specified in query
-----------------------------+----------------------------------------------
 Reporter:  mitchoyoshitaka  |       Owner:  dd32
     Type:  defect (bug)     |      Status:  new 
 Priority:  normal           |   Milestone:  3.0 
Component:  Query            |     Version:  3.0 
 Severity:  normal           |    Keywords:      
-----------------------------+----------------------------------------------
 With [https://core.trac.wordpress.org/browser/trunk/wp-
 includes/query.php?rev=13774 query rev 13774], multiple post types
 specified in the query (#10791) don't work. If a simplex array is given,
 it will work but produce a strict warning:

 Warning: Illegal offset type in isset or empty in
 /Applications/MAMP/htdocs/wordpress/wp-includes/query.php  on line 1715

 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.

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


More information about the wp-trac mailing list