考虑到我们是采用多站点系统,所以如果是通过修改主题代码来实现的话,好几十款主题都要添加代码,这样得话太麻烦了,还不如直接改插件吧,这也是没办法的办法:
找到文件,插件目录 /wordfence/lib/wfOnboardingController.php
定位到大概 62 行
public static function _enqueue_scripts() {
wp_enqueue_style('wordfence-font', 'https://googlefonts.admincdn.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i', '', WORDFENCE_VERSION);
删除掉
https://googlefonts.admincdn.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i
或者用 #
替换
如下:
public static function _enqueue_scripts() {
wp_enqueue_style('wordfence-font', '#', '', WORDFENCE_VERSION);