Make WordPress Core

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#6977 closed defect (bug) (fixed)

Undefined indexes for $redirect and $original in redirect_canonical

Reported by: minddog's profile minddog Owned by: markjaquith's profile markjaquith
Milestone: Priority: normal
Severity: normal Version:
Component: Canonical Keywords:
Focuses: 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 15 years ago.

Download all attachments as: .zip

Change History (3)

@minddog
15 years ago

#1 @Denis-de-Bernardy
14 years ago

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

#2 @filosofo
14 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.