mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
修复:插件更新后设置项被覆盖的问题
This commit is contained in:
parent
be83b295a5
commit
92a73500d4
1 changed files with 4 additions and 4 deletions
|
@ -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'))) {
|
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("wpapi", get_option('wpapi') ?: '2');
|
||||||
update_option("super_admin", '1');
|
update_option("super_admin", get_option('super_admin') ?: '1');
|
||||||
update_option("super_gravatar", '1');
|
update_option("super_gravatar", get_option('super_gravatar') ?: '1');
|
||||||
update_option("super_googlefonts", '2');
|
update_option("super_googlefonts", get_option('super_googlefonts') ?: '2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue