WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#6977 closed defect (bug) (fixed)

Undefined indexes for $redirect and $original in redirect_canonical

Reported by: minddog Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version:
Component: Canonical Keywords:
Focuses: Cc:
PR Number:

Description

To reproduce do a fresh install of wordpress and turn on debug mode. Visit the homepage and you'll see the notices.

Notice: Undefined index: port in <removed>/wp-includes/canonical.php on line 181
Notice: Undefined index: query in <removed>/wp-includes/canonical.php on line 181
Notice: Undefined index: port in <removed>/wp-includes/canonical.php on line 181
Notice: Undefined index: query in <removed>/wp-includes/canonical.php on line 181

To fix this issue, I think we can ignore any extraneous initialization code and suppress the notices with @, as the operation array() !== array() is not affected undefined indexes internally.

Please see my patch for fixing this issue, thanks.

Attachments (1)

6977_fix.patch (848 bytes) - added by minddog 12 years ago.

Download all attachments as: .zip

Change History (3)

@minddog
12 years ago

#1 @Denis-de-Bernardy
11 years ago

  • Component changed from General to Canonical
  • Owner changed from anonymous to markjaquith

#2 @filosofo
11 years ago

  • Milestone 2.9 deleted
  • Resolution set to fixed
  • Status changed from new to closed
  • Version 2.5.1 deleted

Already been fixed.

Note: See TracTickets for help on using tickets.