Use https for Google API external libraries.
Google recommends it and users are more likely to have the https version cached in their browser already. Props rommelxcastro. Fixes #32552. Built from https://develop.svn.wordpress.org/trunk@32843 git-svn-id: http://core.svn.wordpress.org/trunk@32814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d872f38c31
commit
81df9bffc5
|
@ -6,7 +6,7 @@ Press This TinyMCE editor styles :)
|
|||
/**
|
||||
* Links
|
||||
*/
|
||||
@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
|
||||
a {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ Press This TinyMCE editor styles :)
|
|||
/**
|
||||
* Links
|
||||
*/
|
||||
@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
|
||||
a {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ function twentyfifteen_fonts_url() {
|
|||
$fonts_url = add_query_arg( array(
|
||||
'family' => urlencode( implode( '|', $fonts ) ),
|
||||
'subset' => urlencode( $subsets ),
|
||||
), '//fonts.googleapis.com/css' );
|
||||
), 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return $fonts_url;
|
||||
|
|
|
@ -215,7 +215,7 @@ function twentyfourteen_font_url() {
|
|||
'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
|
||||
'subset' => urlencode( 'latin,latin-ext' ),
|
||||
);
|
||||
$font_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
|
||||
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return $font_url;
|
||||
|
|
|
@ -146,7 +146,7 @@ function twentythirteen_fonts_url() {
|
|||
'family' => urlencode( implode( '|', $font_families ) ),
|
||||
'subset' => urlencode( 'latin,latin-ext' ),
|
||||
);
|
||||
$fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
|
||||
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return $fonts_url;
|
||||
|
|
|
@ -113,12 +113,11 @@ function twentytwelve_get_font_url() {
|
|||
elseif ( 'vietnamese' == $subset )
|
||||
$subsets .= ',vietnamese';
|
||||
|
||||
$protocol = is_ssl() ? 'https' : 'http';
|
||||
$query_args = array(
|
||||
'family' => 'Open+Sans:400italic,700italic,400,700',
|
||||
'subset' => $subsets,
|
||||
);
|
||||
$font_url = add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" );
|
||||
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return $font_url;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin);
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin");
|
||||
|
||||
/* Generic */
|
||||
body {
|
||||
|
|
|
@ -149,14 +149,14 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
|
||||
|
||||
// WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.
|
||||
$scripts->add( 'prototype', '//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
|
||||
$scripts->add( 'scriptaculous-root', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-builder', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-dragdrop', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-effects', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-slider', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-sound', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
|
||||
$scripts->add( 'scriptaculous-controls', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
|
||||
$scripts->add( 'scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
|
||||
$scripts->add( 'scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
|
||||
$scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );
|
||||
|
||||
// not used in core, replaced by Jcrop.js
|
||||
|
@ -650,7 +650,7 @@ function wp_default_styles( &$styles ) {
|
|||
}
|
||||
|
||||
// Hotlink Open Sans, for now
|
||||
$open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
|
||||
$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
|
||||
}
|
||||
|
||||
// Register a stylesheet for the selected admin color scheme.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32842';
|
||||
$wp_version = '4.3-alpha-32843';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue