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

WordPress Trac noreply at wordpress.org
Wed Jul 11 08:42:30 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:
--------------------------+------------------------------
Changes (by Fleuv):

 * Attachment "patch.diff" added.

 Wrap the output of wp_make_link_relative() with trailingslashit() this
 also does SEO adding a slash to a links without a slash.

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


More information about the wp-trac mailing list