[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
Tue Nov 3 21:35:20 UTC 2015


#26819: wp_make_link_relative() returns domain name instead of zero length string
path when no path present
------------------------------+------------------------
 Reporter:  adiant            |       Owner:  chriscct7
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Formatting        |     Version:  3.8
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35497"]:
 {{{
 #!CommitTicketReference repository="" revision="35497"
 Formatting: `wp_make_link_relative()` should return an empty string if no
 path is present in the link.

 Props bcworkz, MikeHansenMe, chriscct7, SergeyBiryukov.
 Fixes #26819.
 }}}

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


More information about the wp-trac mailing list