Make WordPress Core

Opened 8 years ago

Last modified 7 years ago

#15007 closed defect (bug)

$wp_query->query_vars['cat'] not set properly — at Version 1

Reported by: ryan Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description (last modified by ryan)

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.

Change History (1)

#1 @ryan
8 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.