mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
feat: 性能优化
This commit is contained in:
parent
789c920032
commit
7121b4b7ef
8 changed files with 63 additions and 57 deletions
|
@ -346,7 +346,7 @@ if ( ! class_exists( 'WP_CHINA_YES_Options' ) ) {
|
|||
} else if ( $this->args['database'] === 'network' ) {
|
||||
update_site_option( $this->unique, $data );
|
||||
} else {
|
||||
update_option( $this->unique, $data );
|
||||
update_option( $this->unique, $data, true );
|
||||
}
|
||||
|
||||
do_action( "wp_china_yes_{$this->unique}_saved", $data, $this );
|
||||
|
|
|
@ -115,7 +115,7 @@ if ( ! function_exists( 'wp_china_yes_import_ajax' ) ) {
|
|||
}
|
||||
|
||||
// Success
|
||||
update_option( $unique, $data );
|
||||
update_option( $unique, $data, true );
|
||||
|
||||
wp_send_json_success();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue