[wp-trac] [WordPress Trac] #14167: get_posts on 'tag_id' doesn't work

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 29 23:14:52 UTC 2010


#14167: get_posts on 'tag_id' doesn't work
--------------------------+-------------------------------------------------
 Reporter:  dphiffer      |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  closed  
 Priority:  normal        |    Milestone:          
Component:  Query         |      Version:  3.0     
 Severity:  normal        |   Resolution:  fixed   
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * keywords:  needs-refresh =>
  * status:  accepted => closed
  * resolution:  => fixed
  * milestone:  3.1 =>


Comment:

 Looks like scribu got this in the great WP_Query upheaval:

 `wp-includes/query.php`
 {{{

 1545                 if ( !empty($qv['tag_id']) ) {
 1546                         $tax_query[] = array(
 1547                                 'taxonomy' => 'post_tag',
 1548                                 'terms' => $qv['tag_id'],
 1549                                 'operator' => 'IN',
 1550                                 'field' => 'term_id'
 1551                         );
 1552                 }
 }}}

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


More information about the wp-trac mailing list