[wp-trac] Re: [WordPress Trac] #9008: inconsistent http/https scheme

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 2 08:24:05 GMT 2009


#9008: inconsistent http/https scheme
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  defect (bug)       |       Status:  new      
 Priority:  normal             |    Milestone:  2.7.1    
Component:  Template           |      Version:  2.7      
 Severity:  major              |   Resolution:           
 Keywords:  dev-feedback       |  
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  => dev-feedback
  * summary:  bloginfo() ignores scheme => inconsistent http/https scheme

Comment:

 Right. The complicated one to change is get_feed_url(), because there is
 not equivalent (best I know anyway) to site_url() for the home url.

 A separate candidate "fix" would be to enforce http for sites that are
 declared to use it. In other words, in site_url():

 {{{
 $url = str_replace( 'http://', "{$scheme}://", get_option('siteurl') );
 }}}

 Should really be something like:

 {{{
 $url = str_replace( array('http://', 'https://'), "{$scheme}://",
 get_option('siteurl') );
 }}}

 And then, when a url is browsed as https:// where http:// should be used,
 it would redirect to the http:// versions of that url.

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


More information about the wp-trac mailing list