From a156d0b162019ea68b094fd1ce02efd8557a8edf Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Mon, 27 Apr 2020 15:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96set=5Fwp=5Foption=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index e16f772..1db1bbb 100644 --- a/index.php +++ b/index.php @@ -168,10 +168,10 @@ EOT; $custom_api_server = '', $custom_download_server = '' ) { - $options = []; - $options['community'] = (int) $community; - $options['custom_api_server'] = $custom_api_server; - $options['custom_download_server'] = $custom_download_server; - update_option("wp_china_yes_options", $options); + update_option("wp_china_yes_options", [ + 'community' => (int) $community, + 'custom_api_server' => $custom_api_server, + 'custom_download_server' => $custom_download_server + ]); } }