[wp-trac] [WordPress Trac] #12750: A few query bugs...

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 28 22:30:08 UTC 2010


#12750: A few query bugs...
-----------------------------+----------------------------------------------
 Reporter:  jfarthing84      |       Owner:  dev-feedback
     Type:  defect (bug)     |      Status:  new         
 Priority:  highest omg bbq  |   Milestone:  Unassigned  
Component:  Query            |     Version:  3.0         
 Severity:  blocker          |    Keywords:              
-----------------------------+----------------------------------------------
 I found a few bugs in query.php relating to attachments and taxonomies.

 If you specify 'taxonomy' and 'term' in a query (therefore causing the
 $post_status_join to be true) and also a 'post_mime_type', it breaks the
 query because the post mime type is added like "post_mime_type =" rather
 than "wp_posts.post_mime_type=", making the post_mime_type column
 ambiguous.

 Also, very related is the fact that querying a taxonomy automatically sets
 the post status to 'publish' regardless of any post status a specify. Why?
 What if I wanted to query all the drafts of a taxonomy or all of my own
 custom status?

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


More information about the wp-trac mailing list