Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#25271 closed defect (bug) (fixed)

Notice: unitialized string offset in link-template.php

Reported by: jeremyfelt's profile jeremyfelt 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)

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

Download all attachments as: .zip

Change History (4)

@jeremyfelt
11 years ago

#1 @wonderboymusic
11 years ago

  • Milestone changed from Awaiting Review to 3.7

#2 @nacin
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Only now seeing this. [25340].

#3 @SergeyBiryukov
11 years ago

  • Version changed from trunk to 3.7
Note: See TracTickets for help on using tickets.