Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#16145 closed defect (bug) (fixed)

parse_tax_query - lookup for tag_id incorrect

Reported by: westi's profile westi Owned by: westi's profile westi
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Query Keywords: has-patch
Focuses: Cc:

Description

		if ( !empty($qv['tag_id']) ) {
			$tax_query[] = array(
				'taxonomy' => 'post_tag',
				'terms' => $qv['tag_id'],
			);
		}

There is no $qv in this function just $q

Attachments (1)

tag_in.diff (496 bytes) - added by westi 14 years ago.

Download all attachments as: .zip

Change History (4)

@westi
14 years ago

#1 @westi
14 years ago

  • Owner set to westi
  • Status changed from new to accepted

#2 @scribu
14 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 3.1

#3 @automattor
14 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [17243]) Use correct var. Props westi. fixes #16145

Note: See TracTickets for help on using tickets.