WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13280 closed defect (bug) (fixed)

Duplicate key in Wordpress WP_Query::fill_query_vars

Reported by: lriggle Owned by: ryan
Milestone: 3.0 Priority: low
Severity: minor Version:
Component: Query Keywords:
Focuses: Cc:

Description

In the fill_query_vars method of the WP_Query class, the keys array has the key of "hour" listed twice.

$keys = array('error', 'm', 'p', 'post_parent', 'subpost', 'subpost_id', 'attachment', 'attachment_id', 'name', 'hour', 'static', 'pagename', 'page_id', 'second', 'minute', 'hour', 'day', 'monthnum', 'year', 'w', 'category_name', 'tag', 'cat', 'tag_id', 'author_name', 'feed', 'tb', 'paged', 'comments_popup', 'meta_key', 'meta_value', 'preview');

I'm not sure this actually affects anything, nor what the second hour might be referencing, but I thought I'd bring it to your attention.

Change History (3)

comment:1 nacin4 years ago

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

(In [14477]) Remove duplicated query var. props lriggle, fixes #13280.

comment:2 nacin4 years ago

  • Milestone changed from Unassigned to 3.0

comment:3 westi4 years ago

Wow that bug was 4 years old! - [4205]

Note: See TracTickets for help on using tickets.