[wp-trac] [WordPress Trac] #14360: Smilies on SSL

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 20 10:55:34 UTC 2010


#14360: Smilies on SSL
--------------------------+-------------------------------------------------
 Reporter:  tech163       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.0            
 Severity:  minor         |    Keywords:                 
--------------------------+-------------------------------------------------
 When I have smiles in comments, they are not served in SSL, even if I
 enabled FORCE_SSL_ADMIN in wp-config.

 I think this can be fixed by changing:

 {{{
         $siteurl = get_option( 'siteurl' );
 }}}

 to


 {{{
         $siteurl = get_option( 'siteurl' );

         if($_SERVER['HTTPS'] == 'on') {
                 if(substr($siteurl, 0, 5) == 'http:') {
                         $siturl = 'https:' . substr($siteurl, 5);
                 }
         }

 }}}

 on line 1427 of /wp-includes/formatting.php.

 Can someone else verify that this works?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14360>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list