[wp-trac] [WordPress Trac] #15007: $wp_query->query_vars['cat'] not set properly

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 1 14:13:36 UTC 2010


#15007: $wp_query->query_vars['cat'] not set properly
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Taxonomy      |     Version:  3.1
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
Description changed by ryan:

Old description:

> I've noticed some themes are returning the same content for all
> categories when running current trunk (when visiting
> /category/foo|bar|baz).  They have usage of $wp_query->query_vars['cat']
> in common. Switching them to get_queried_object_id() fixes them, but we
> should preserve back compat.

New description:

 I've noticed some themes are returning the same content for all categories
 when running current trunk (when visiting /category/foo|bar|baz).  They
 have usage of $wp_query->query_vars!['cat'] in common. Switching them to
 get_queried_object_id() fixes them, but we should preserve back compat.

--

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


More information about the wp-trac mailing list