[wp-trac] [WordPress Trac] #29582: Home Folder variable

WordPress Trac noreply at wordpress.org
Mon Sep 8 12:41:20 UTC 2014


#29582: Home Folder variable
-----------------------------+----------------------
 Reporter:  selnomeria       |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  General          |     Version:  4.0
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------

Comment (by SergeyBiryukov):

 OK, use [http://codex.wordpress.org/Function_Reference/home_url
 home_url()] or
 [http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri
 get_stylesheet_directory_uri()].

 Looks like you want a relative path instead of the full URL (why?), use
 `home_url( '/', 'relative' )` in that case.

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


More information about the wp-trac mailing list