#25271 closed defect (bug) (fixed)
Notice: unitialized string offset in link-template.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.7 | Priority: | normal |
| Severity: | normal | Version: | 3.7 |
| Component: | Warnings/Notices | Keywords: | has-patch |
| Focuses: | Cc: |
Description
It looks like changes introduced in [25319] caused an issue with relative URLs in set_url_scheme().
Notice is generated first when admin_url( 'admin-ajax.php', 'relative' ) is used in script-loader.php on line 280. Two others are generated as well with the same pattern.
Notice is caused because an empty string is generated for $url in set_url_scheme() here.
Attached patch checks for an empty string before looking at the first character.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Only now seeing this. [25340].