[wp-trac] [WordPress Trac] #44564: wp_make_link_relative(home_url()) returns empty

WordPress Trac noreply at wordpress.org
Wed Jul 11 08:35:11 UTC 2018


#44564: wp_make_link_relative(home_url()) returns empty
--------------------------+------------------------------
 Reporter:  Fleuv         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  4.9.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by Fleuv):

 According to the regex `|^(https?:)?//[^/]+(/?.*)|i` used in the function,
 the function should only return empty when the string what passed to it is
 the web root base and doesn't contain a trailing slash.

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


More information about the wp-trac mailing list