Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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:


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)

#1 @nacin
8 years ago

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

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

#2 @nacin
8 years ago

  • Milestone changed from Unassigned to 3.0

#3 @westi
8 years ago

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

Note: See TracTickets for help on using tickets.