#25271 closed defect (bug) (fixed)
Notice: unitialized string offset in link-template.php
| Reported by: | jeremyfelt | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Warnings/Notices | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Only now seeing this. [25340].