[wp-trac] [WordPress Trac] #20604: get_posts tax_query

WordPress Trac wp-trac at lists.automattic.com
Wed May 2 16:37:15 UTC 2012


#20604: get_posts tax_query
--------------------------+-----------------------------
 Reporter:  Ninos Ego     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.3.1
 Severity:  minor         |   Keywords:  needs-patch
--------------------------+-----------------------------
 have got this codesnippet in the args


 {{{
 'tax_query' => array(
         'relation' => 'OR',
         array(
                 'taxonomy' => 'taxonomy1',
                 'field' => 'id',
                 'terms' => 'sometimes false or clear',
                 'operator' => 'IN'
         ),
         array(
         'taxonomy' => 'taxonomy2',
                 'field' => 'id',
                 'terms' => 'sometimes false or clear',
                 'operator' => 'IN'
         )
 ),
 }}}


 if in tax 1 and tax 2 there's no term, I get all posts. I think I should
 get than no posts...

 Think, thats a bug, hope you can fix it in the next version

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


More information about the wp-trac mailing list