Ticket #6977 (new defect)

Opened 3 months ago

Undefined indexes for $redirect and $original in redirect_canonical

Reported by: minddog Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version: 2.5.1
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

6977_fix.patch (0.8 kB) - added by minddog on 05/15/08 18:14:18.

Change History

05/15/08 18:14:18 changed by minddog

  • attachment 6977_fix.patch added.