[wp-trac] [WordPress Trac] #32705: `includes_url` shouldn't use `site_url()` on the frontend

WordPress Trac noreply at wordpress.org
Fri Jun 26 02:32:04 UTC 2015


#32705: `includes_url` shouldn't use `site_url()` on the frontend
-------------------------------------+------------------------
 Reporter:  wonderboymusic           |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.3
Component:  Permalinks               |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  multisite
-------------------------------------+------------------------

Comment (by dd32):

 For a single-site install, this would be incorrect:

 The Site URL is supposed to be the location of the actual files, the Home
 URL is supposed to be the rewritten front-end (ie. site:
 dd32.id.au/wordpress home: dd32.id.au)

 Having `includes_url()` use `home_url()` on the front-end would be
 incorrect in that case.

 Personally this feels like it's plugin territory, site_url/home_url should
 be accessible, and admin_url/site_url should be rewritten with a plugin to
 the secret location on the fly for the admin requests.

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


More information about the wp-trac mailing list