Explorar o código

Fix incorrect font name

Using a `+` instead of a space here will cause the font name to be doubly encoded (as `PT%2BSans`), resulting in an error 400 when loading from Google Fonts.

@josephscott kindly validated the fix by testing on his sandbox.
Sérgio Gomes %!s(int64=5) %!d(string=hai) anos
pai
achega
3d1af6c790
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hever/functions.php

+ 1 - 1
hever/functions.php

@@ -136,7 +136,7 @@ function hever_fonts_url() {
 	if ( 'off' !== $ptsans ) {
 		$font_families = array();
 
-		$font_families[] = 'PT+Sans:400,400i,700,700i';
+		$font_families[] = 'PT Sans:400,400i,700,700i';
 
 		$query_args = array(
 			'family' => urlencode( implode( '|', $font_families ) ),