From 2b898a947ff35509fc6024eb2f2a629a1042328f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E8=90=BD?= Date: Sun, 9 Feb 2020 01:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E5=85=B3=E9=97=AD2=E4=B8=AA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/class_load.php | 2 +- functions/optimization.php | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/class/class_load.php b/class/class_load.php index b76ff23..697c130 100644 --- a/class/class_load.php +++ b/class/class_load.php @@ -4,7 +4,7 @@ include( 'clean-up.php' );//数据库清理 include( 'local_avatars.php' );//本地头像 include( 'updates.php' );//在线更新 -include( 'widget_cache.php' );//小工具缓存 +//include( 'widget_cache.php' );//小工具缓存 include( 'Payjs.php' );//支付功能 include( 'points/points.php' );//积分功能 diff --git a/functions/optimization.php b/functions/optimization.php index e677d73..217db83 100644 --- a/functions/optimization.php +++ b/functions/optimization.php @@ -409,13 +409,6 @@ function deactivate_rest_api() { remove_action( 'rest_api_init', 'wp_oembed_register_route' ); } - -//前台禁止加载语言包 -add_filter('locale', function($locale) { - $locale = ( is_admin() ) ? $locale : 'en_US'; - return $locale; -}); - // 定制登录页面链接的连接 add_filter('login_headerurl', function (){ return home_url();