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

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 18:29:22 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:  2nd-opinion
-------------------------------+--------------------------------------------

Comment(by nacin):

 Replying to [comment:24 nacin]:
 > We need to go through and update bloginfo('url') references to
 home_url(), no? (29 instances in core.)

 Unless I'm missing something -- I think we should do that, then mark
 bloginfo('url') as deprecated (see #11652) and change bloginfo() to use
 home_url() instead of get_option('home').

 I wonder if we can also mark get_option('home') as deprecated in some way
 as well. (We would have to prevent the deprecated warning inside
 home_url()).

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


More information about the wp-trac mailing list