[wp-trac] [WordPress Trac] #9008: add a home_url() function to enforce http/https scheme

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 27 23:29:50 UTC 2010


#9008: add a home_url() function to enforce http/https scheme
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  anonymous  
     Type:  enhancement        |      Status:  new        
 Priority:  high               |   Milestone:  3.0        
Component:  Template           |     Version:  2.7        
 Severity:  major              |    Keywords:  needs-patch
-------------------------------+--------------------------------------------
Changes (by nacin):

  * keywords:  2nd-opinion, has-patches => needs-patch


Comment:

 (In [13474]) get_bloginfo('wpurl') should use site_url(), not
 get_option('siteurl'). see #9008

 ----

 Because of the filters in get_bloginfo(), get_bloginfo_rss(), and
 bloginfo_rss(), and their wide use, I think it would be okay to leave as-
 is and simply transition to home_url() and site_url() inside
 get_bloginfo().

 We could still use a solution to route direct calls from get_option() to
 home_url() and site_url().

 '''What's left''': There are still calls to get_option('siteurl') in core.
 They need to become site_url(). Many of them then have a path then
 appended, those can be changed to use the first parameter of site_url().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9008#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list