mirai-mamori / Sakurairo

一个多彩、轻松上手、体验完善,具有强大自定义功能的WordPress主题(基于Sakura主题,支持简繁英日多语言)A Colorful, Easy-to-use, Perfect Experience, and Powerful Customizable WordPress Theme (Based on Theme Sakura. Support Simplified Chinese, Traditional Chinese, English and Japanese languages)
https://docs.fuukei.org
GNU General Public License v2.0
3.05k stars 352 forks source link

修复字体API地址设置被重置 #875

Closed DreamFerry closed 6 months ago

DreamFerry commented 6 months ago

该函数存在两个判断,一是当该设置项为空时会赋予默认值,这是合理的;二是会判断当前值是否为默认值,若不是默认值会重置回默认值,该判断是多余的,且会导致问题。因此我删除了该判断,并且由于原默认字体API已失效,且谷歌官方API速度还不错,对默认字体API地址进行了修改