WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 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)

comment:1 ryan4 years ago

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