[wp-trac] [WordPress Trac] #15076: wp_query->query_vars should hold taxonomy and term for post_tag and category archives

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 9 07:55:14 UTC 2010


#15076: wp_query->query_vars should hold taxonomy and term for post_tag and
category archives
-------------------------+--------------------------------------------------
 Reporter:  joostdevalk  |        Owner:  scribu 
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:         
Component:  Query        |      Version:  3.1    
 Severity:  normal       |   Resolution:  wontfix
 Keywords:  haspatch     |  
-------------------------+--------------------------------------------------
Changes (by scribu):

  * status:  accepted => closed
  * resolution:  => wontfix
  * milestone:  Awaiting Review =>


Comment:

 It is wrong, since with permalinks on, for example, 'cat' is not set.

 Anyway, I think we should move away from 'taxonomy' and 'term' query vars,
 since now you can query multiple taxonomies.

 Also, you can use {{{$wp_query->get_queried_object()}}}.

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


More information about the wp-trac mailing list