[wp-trac] [WordPress Trac] #26819: wp_make_link_relative() returns domain name instead of zero length string path when no path present

WordPress Trac noreply at wordpress.org
Thu Jan 16 05:38:41 UTC 2014


#26819: wp_make_link_relative() returns domain name instead of zero length string
path when no path present
--------------------------+------------------------------
 Reporter:  adiant        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  3.8
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by bcworkz):

 * keywords:   => has-patch


Comment:

 Making the slash in the match expression optional does the trick.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26819#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list