WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 5 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 3 years ago.
Removes the variable

Download all attachments as: .zip

Change History (6)

@tamlyn3 years ago

Removes the variable

comment:1 @SergeyBiryukov3 years ago

  • Keywords has-patch added

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

comment:2 @nacin3 years ago

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

comment:3 @nacin3 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.

comment:4 @nacin5 months ago

In 30817:

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

props avryl.
fixes #20668.

comment:5 @nacin5 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.