Make WordPress Core


Ignore:
Timestamp:
06/18/2015 03:50:42 PM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.