From 92a73500d487f742f7105e625778884e7393569c Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Sun, 30 Aug 2020 09:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E8=AE=BE=E7=BD=AE=E9=A1=B9=E8=A2=AB?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-china-yes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-china-yes.php b/wp-china-yes.php index 1140c99..2b996dc 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -34,10 +34,10 @@ if (is_admin() && !(defined('DOING_AJAX') && DOING_AJAX)) { * 初始化设置项 */ if (empty(get_option('wpapi')) || empty(get_option('super_admin')) || empty(get_option('super_gravatar')) || empty(get_option('super_googlefonts'))) { - update_option("wpapi", '2'); - update_option("super_admin", '1'); - update_option("super_gravatar", '1'); - update_option("super_googlefonts", '2'); + update_option("wpapi", get_option('wpapi') ?: '2'); + update_option("super_admin", get_option('super_admin') ?: '1'); + update_option("super_gravatar", get_option('super_gravatar') ?: '1'); + update_option("super_googlefonts", get_option('super_googlefonts') ?: '2'); }