mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-06 21:53:56 +08:00
优化set_wp_option方法
This commit is contained in:
parent
b9cd587072
commit
a156d0b162
1 changed files with 5 additions and 5 deletions
10
index.php
10
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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue