Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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)

25271.diff​ (527 bytes ) - added by jeremyfelt 13 years ago.

Download all attachments as: .zip

Change History (4)

@jeremyfelt
13 years ago

#1 @wonderboymusic
13 years ago

  • Milestone Awaiting Review → 3.7

#2 @nacin
13 years ago

  • Resolution → fixed
  • Status new → closed

Only now seeing this. [25340].

#3 @SergeyBiryukov
13 years ago

  • Version trunk → 3.7
Note: See TracTickets for help on using tickets.