浏览代码

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 5 年之前
父节点
当前提交
3d1af6c790
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) ),