Make WordPress Core

Opened 9 years ago

Last modified 5 years ago

#41577 new defect (bug)

Fix Notice fixing

Reported by: glehner Owned by:
Priority: normal Milestone: Awaiting Review
Component: Canonical Version: 4.8.1
Severity: normal Keywords:
Cc: Focuses:

Description

The file wp-includes/canonical.php produces Notices for undefined indexes when a requested uri has no path or query.

The attached patch sets the indexes to empty strings.

#6977 (which was not used) had a different approach. The currently used "Notice fixing" approach does not fix up $original which is used afterwards.

Attachments (1)

canonical.php.patch (944 bytes ) - added by glehner 9 years ago.

Download all attachments as: .zip

Change History (4)

#2 in reply to: ↑ description @Andy Schmidt
8 years ago

  • Type enhancementdefect (bug)

Replying to glehner:
FYI: The same problem exists with $originalhost not being tested for 'undefined' in the code line right above your own patch, see https://core.trac.wordpress.org/ticket/34353#comment:10.

Note: See TracTickets for help on using tickets.