From b2aa125d810e7751a81ac5ed278c202ad22bf7db Mon Sep 17 00:00:00 2001
From: humorwang <417791635@qq.com>
Date: Mon, 27 Dec 2021 13:37:41 +0800
Subject: [PATCH] =?UTF-8?q?google=E5=AD=97=E4=BD=93=E4=BF=AE=E6=94=B9cdn?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
functions.php | 4 ++--
functions/js/customizer-preview.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/functions.php b/functions.php
index 7c35014..2cedc54 100644
--- a/functions.php
+++ b/functions.php
@@ -286,7 +286,7 @@ function cordero_fonts_url() {
$fonts_url = add_query_arg( array(
'family' => urlencode( implode( '|', array_unique($fonts) ) ),
'subset' => urlencode( $subsets ),
- ), '//fonts.googleapis.com/css' );
+ ), '//fonts.geekzu.org/css' );
return esc_url_raw($fonts_url);
} else {
return;
@@ -355,7 +355,7 @@ function cordero_editor_fonts_url() {
$fonts_url = add_query_arg( array(
'family' => urlencode( implode( '|', array_unique($fonts) ) ),
'subset' => urlencode( $subsets ),
- ), '//fonts.googleapis.com/css' );
+ ), '//fonts.geekzu.org/css' );
return esc_url_raw($fonts_url);
} else {
return;
diff --git a/functions/js/customizer-preview.js b/functions/js/customizer-preview.js
index ec18b72..cd2899e 100644
--- a/functions/js/customizer-preview.js
+++ b/functions/js/customizer-preview.js
@@ -180,7 +180,7 @@ function cordero_font_bind( to, style_class ) {
if ( to == '' || to == 'Arial, Helvetica, sans-serif' || to == 'Impact, Charcoal, sans-serif' || to == '"Lucida Sans Unicode", "Lucida Grande", sans-serif' || to == 'Tahoma, Geneva, sans-serif' || to == '"Trebuchet MS", Helvetica, sans-serif' || to == 'Verdana, Geneva, sans-serif' || to == 'Georgia, serif' || to == '"Palatino Linotype", "Book Antiqua", Palatino, serif' || to == '"Times New Roman", Times, serif' ) {
} else {
var googlefont = encodeURI(to.replace(" ", "+"));
- jQuery('head').append('');
+ jQuery('head').append('');
to = to.substr(0, to.indexOf(':'));
to = "'" + to + "'";
}