Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#13280 closed defect (bug) (fixed)

Duplicate key in Wordpress WP_Query::fill_query_vars

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

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)

#1 @nacin
17 years ago

  • Resolution → fixed
  • Status new → closed

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

#2 @nacin
17 years ago

  • Milestone Unassigned → 3.0

#3 @westi
17 years ago

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

Note: See TracTickets for help on using tickets.