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)
Change History (4)
#2
in reply to: ↑ description
@
8 years ago
- Type enhancement → defect (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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #34353, #39827.