Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8873 closed defect (bug) (invalid)

Dead query code

Reported by: filosofo's profile filosofo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: p page_id query_vars dead-code has-patch
Focuses: Cc:

Description

Currently $q['p'] is set to $q['page_id'], but $q is not a global variable, not returned, not passed to a filter, and $q['p'] is not referred to again in that method, so the code does nothing.

Patch removes it.

Attachments (1)

dead_p_query_var_code.diff (439 bytes) - added by filosofo 15 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
15 years ago

Isn't it a reference to query_vars?

#2 @filosofo
15 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 2.8 deleted

Oh, duh. Sorry.

Note: See TracTickets for help on using tickets.