WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 20 months 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:

Description

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 4 years ago.
Removes the variable

Download all attachments as: .zip

Change History (6)

@tamlyn
4 years ago

Removes the variable

#1 @SergeyBiryukov
4 years ago

  • Keywords has-patch added

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

#2 @nacin
4 years ago

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

#3 @nacin
4 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.

#4 @nacin
20 months ago

In 30817:

Editor focus: Don't trigger when typing while the mouse is outside the editor.

props avryl.
fixes #20668.

#5 @nacin
20 months ago

In 30818:

Editor focus: Don't trigger when typing while the mouse is outside the editor.

Merges [30817] to the 4.1 branch.

props avryl.
fixes #20668.

Note: See TracTickets for help on using tickets.