Ticket #19978: 19978-ssl-webfont.patch
File 19978-ssl-webfont.patch, 903 bytes (added by , 13 years ago) |
---|
-
wp-content/themes/twentytwelve/header.php
24 24 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 25 25 wp_enqueue_script( 'comment-reply' ); 26 26 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'; 28 wp_enqueue_style( 'fonts', $scheme . '://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' ); 28 29 29 30 wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 30 31 ?> … … 51 52 <?php endif; ?> 52 53 </header><!-- #masthead --> 53 54 54 <div id="main"> 55 No newline at end of file 55 <div id="main">