關(guān)于谷歌字體插件(Replace Google Fonts)默認(rèn)https請求加載失敗問題解決辦法如下:
? ? publicfunctionohMyFont($text)
????{
????????returnstr_replace('//fonts.googleapis.com/','//fonts.useso.com/',$text);
????}
把花括號里面的字符串改為即可:
public function ohMyFont($text)
{
$text = str_replace('https://fonts.googleapis.com/', 'http://fonts.useso.com/', $text);
$text = str_replace('//fonts.googleapis.com/', 'http://fonts.useso.com/', $text);return $text;
}
{
$text = str_replace('https://fonts.googleapis.com/', 'http://fonts.useso.com/', $text);
$text = str_replace('//fonts.googleapis.com/', 'http://fonts.useso.com/', $text);return $text;
}
以上。
配圖的美女好看