加快登陆速度-去除加载谷歌字体

// 去除加载谷歌字体
[code]
class Disable_Google_Fonts {
public function __construct() {
add_filter( ‘gettext_with_context’, array( this, ‘disable_open_sans’ ), 888, 4 );
}
public function disable_open_sans(
translations, text,context, domain ) {
if ( ‘Open Sans font: on or off’ ==
context && ‘on’ == text ) {translations = ‘off’;
}
return $translations;
}
}
[/code]