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

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 17:02:07 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 westi):

 We can't put that logic into get_option().

 We could put something on a pre_option filter hook to do the check there
 so it only runs for the home option.

 I wonder if this is one place where putting the message in the face of the
 developer is a step too far due to the cost outweighing the benifit and we
 should just hilight it in the phpDoc.

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


More information about the wp-trac mailing list