Make WordPress Core

Changeset 32843


Ignore:
Timestamp:
06/18/2015 03:50:42 PM (9 years ago)
Author:
obenland
Message:

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.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/press-this-editor.css

    r32051 r32843  
    77* Links
    88*/
    9 @import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
     9@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700");
    1010a {
    1111    color: #0073aa;
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r31934 r32843  
    199199            'family' => urlencode( implode( '|', $fonts ) ),
    200200            'subset' => urlencode( $subsets ),
    201         ), '//fonts.googleapis.com/css' );
     201        ), 'https://fonts.googleapis.com/css' );
    202202    }
    203203
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r32116 r32843  
    216216            'subset' => urlencode( 'latin,latin-ext' ),
    217217        );
    218         $font_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
     218        $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    219219    }
    220220
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r32116 r32843  
    147147            'subset' => urlencode( 'latin,latin-ext' ),
    148148        );
    149         $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
     149        $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    150150    }
    151151
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r32116 r32843  
    114114            $subsets .= ',vietnamese';
    115115
    116         $protocol = is_ssl() ? 'https' : 'http';
    117116        $query_args = array(
    118117            'family' => 'Open+Sans:400italic,700italic,400,700',
    119118            'subset' => $subsets,
    120119        );
    121         $font_url = add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" );
     120        $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    122121    }
    123122
  • trunk/src/wp-includes/js/tinymce/plugins/compat3x/css/dialog.css

    r27289 r32843  
    1 @import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin);
     1@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin");
    22
    33/* Generic */
  • trunk/src/wp-includes/script-loader.php

    r32806 r32843  
    150150
    151151    // WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.
    152     $scripts->add( 'prototype', '//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
    153     $scripts->add( 'scriptaculous-root', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
    154     $scripts->add( 'scriptaculous-builder', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
    155     $scripts->add( 'scriptaculous-dragdrop', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
    156     $scripts->add( 'scriptaculous-effects', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
    157     $scripts->add( 'scriptaculous-slider', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
    158     $scripts->add( 'scriptaculous-sound', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
    159     $scripts->add( 'scriptaculous-controls', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
     152    $scripts->add( 'prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
     153    $scripts->add( 'scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
     154    $scripts->add( 'scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
     155    $scripts->add( 'scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
     156    $scripts->add( 'scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
     157    $scripts->add( 'scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
     158    $scripts->add( 'scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
     159    $scripts->add( 'scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
    160160    $scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );
    161161
     
    651651
    652652        // Hotlink Open Sans, for now
    653         $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
     653        $open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    654654    }
    655655
Note: See TracChangeset for help on using the changeset viewer.