Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12413 closed defect (bug) (duplicate)

query_var not set for builtin taxonomies

Reported by: scribu's profile scribu Owned by: filosofo's profile filosofo
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

The builtin category and post_tag taxonomies have the query_var argument set to false.

This has undesired side effects, especially for plugins.

Attachments (1)

12413.diff (1.1 KB) - added by scribu 15 years ago.

Download all attachments as: .zip

Change History (3)

@scribu
15 years ago

#1 follow-up: @dd32
15 years ago

The reason the query vars are set to false is due WP_Query handling the query vars manually for those taxonomies.

Adding the query vars has some side effects i believe.

What are the problems plugins are running into?

#2 in reply to: ↑ 1 @scribu
15 years ago

  • Keywords commit removed
  • Milestone 3.0 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Replying to dd32:

The reason the query vars are set to false is due WP_Query handling the query vars manually for those taxonomies.

Adding the query vars has some side effects i believe.

I guess this calls for a more holistic approach. Will probably be addressed in #9951

What are the problems plugins are running into?

I'm enhancing my Query Multiple Taxonomies to allow term intersections and I need to treat tags and categories like a regular taxonomy.

I guess it's not such a common problem. :)

Note: See TracTickets for help on using tickets.