Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20668 closed defect (bug) (fixed)

$wp_did_template_redirect is unused

Reported by: tamlyn Owned by: nacin
Milestone: 3.4 Priority: normal
Severity: trivial Version: 3.4
Component: Template Keywords: has-patch commit
Focuses: Cc:


The global declaration at the start of load_template() in wp-includes/template.php (or wp-includes/theme.php before 3.4) imports a variable called $wp_did_template_redirect. This variable doesn't exist and is not referenced anywhere else.

Attachments (1)

wp_did_template_redirect.patch (812 bytes) - added by tamlyn 2 years ago.
Removes the variable

Download all attachments as: .zip

Change History (4)

tamlyn2 years ago

Removes the variable

comment:1 SergeyBiryukov2 years ago

  • Keywords has-patch added

Renamed to $wp_template_redirect in [2069], removed in [2303].

comment:2 nacin2 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.4

comment:3 nacin2 years ago

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

In [20872]:

Remove reference to a global eliminated long ago. props tamlyn, fixes #20668.

Note: See TracTickets for help on using tickets.