Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#6977 closed defect (bug) (fixed)

Undefined indexes for $redirect and $original in redirect_canonical

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

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 5 years ago.

Download all attachments as: .zip

Change History (3)

minddog5 years ago

  • Component changed from General to Canonical
  • Owner changed from anonymous to markjaquith
  • 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.