Twenty Twelve: use is_ssl() to load the correct protocol for Google font CSS file. Fixes #21399, props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@21391 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5931640943
commit
d699dd2ae7
|
@ -111,9 +111,11 @@ function twentytwelve_scripts_styles() {
|
|||
* Depends on Theme Options setting.
|
||||
*/
|
||||
$options = $twentytwelve_options->get_theme_options();
|
||||
if ( $options['enable_fonts'] )
|
||||
wp_enqueue_style( 'twentytwelve-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' );
|
||||
|
||||
if ( $options['enable_fonts'] ) {
|
||||
$protocol = is_ssl() ? 'https' : 'http';
|
||||
wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Load our main CSS file.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue