Changeset 30832
- Timestamp:
- 12/12/2014 06:25:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r30790 r30832 151 151 */ 152 152 function twentyfifteen_fonts_url() { 153 $fonts = array(); 154 $subsets = 'latin,latin-ext'; 153 $fonts_url = ''; 154 $fonts = array(); 155 $subsets = 'latin,latin-ext'; 155 156 156 157 /* translators: If there are characters in your language that are not supported by Noto Sans, translate this to 'off'. Do not translate into your own language. */ … … 182 183 } 183 184 184 return add_query_arg( array( 185 'family' => urlencode( implode( '|', $fonts ) ), 186 'subset' => urlencode( $subsets ), 187 ), '//fonts.googleapis.com/css' ); 185 if ( $fonts ) { 186 $fonts_url = add_query_arg( array( 187 'family' => urlencode( implode( '|', $fonts ) ), 188 'subset' => urlencode( $subsets ), 189 ), '//fonts.googleapis.com/css' ); 190 } 191 192 return $fonts_url; 188 193 } 189 194 endif; … … 202 207 203 208 // Load our main stylesheet. 204 wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array( ' twentyfifteen-fonts', 'genericons' ) );209 wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array( 'genericons' ) ); 205 210 206 211 // Load the Internet Explorer specific stylesheet.
Note: See TracChangeset
for help on using the changeset viewer.