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 + ]); } }