[wp-trac] [WordPress Trac] #15350: WP_Query Assumes Taxonomy Query Operator

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 9 13:26:18 UTC 2010


#15350: WP_Query Assumes Taxonomy Query Operator
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  3.1     
Component:  Query         |      Version:  3.1     
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 OK, but that changes existing behavior.

 In 3.0:

 {{{
 query_posts( array(
    'taxonomy' => 'post_tag',
    'term' => 'my tag',
 ) );
 var_dump( is_tax() ); // false
 }}}

 With r16258:

 {{{
 query_posts( array(
    'taxonomy' => 'post_tag',
    'term' => 'my tag',
 ) );
 var_dump( is_tax() ); // true
 }}}

 Is this change of behavior intentional?

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


More information about the wp-trac mailing list