WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#16145 closed defect (bug) (fixed)

parse_tax_query - lookup for tag_id incorrect

Reported by: westi Owned by: 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 3 years ago.

Download all attachments as: .zip

Change History (4)

westi3 years ago

comment:1 westi3 years ago

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

comment:2 scribu3 years ago

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

comment:3 automattor3 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.