WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#15007 closed defect (bug)

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

Reported by: ryan Owned by:
Priority: normal Milestone: 3.1
Component: Taxonomy Version: 3.1
Severity: normal Keywords:
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 ryan3 years ago

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