WordPress.org

Make WordPress Core

Ticket #19978: 19978-ssl-webfont.patch

File 19978-ssl-webfont.patch, 903 bytes (added by ocean90, 3 years ago)
  • wp-content/themes/twentytwelve/header.php

     
    2424if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 
    2525        wp_enqueue_script( 'comment-reply' ); 
    2626 
    27 wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' ); 
     27$scheme = is_ssl() ? 'https' : 'http'; 
     28wp_enqueue_style( 'fonts', $scheme . '://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' ); 
    2829 
    2930wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 
    3031?> 
     
    5152                <?php endif; ?> 
    5253        </header><!-- #masthead --> 
    5354 
    54         <div id="main"> 
    55  No newline at end of file 
     55        <div id="main">