WordPress.org

Make WordPress Core

Ticket #29690: 29690.patch

File 29690.patch, 855 bytes (added by SergeyBiryukov, 6 years ago)
  • src/wp-content/themes/twentyfourteen/functions.php

     
    211211         * by Lato, translate this to 'off'. Do not translate into your own language.
    212212         */
    213213        if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
    214                 $font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" );
     214                $query_args = array(
     215                        'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
     216                        'subset' => urlencode( 'latin,latin-ext' ),
     217                );
     218                $font_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" );
    215219        }
    216220
    217221        return $font_url;