mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +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_api_server = '',
|
||||||
$custom_download_server = ''
|
$custom_download_server = ''
|
||||||
) {
|
) {
|
||||||
$options = [];
|
update_option("wp_china_yes_options", [
|
||||||
$options['community'] = (int) $community;
|
'community' => (int) $community,
|
||||||
$options['custom_api_server'] = $custom_api_server;
|
'custom_api_server' => $custom_api_server,
|
||||||
$options['custom_download_server'] = $custom_download_server;
|
'custom_download_server' => $custom_download_server
|
||||||
update_option("wp_china_yes_options", $options);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue