mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
格式化代码
This commit is contained in:
parent
a156d0b162
commit
05d7eda53e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class WP_CHINA_YES {
|
|||
public function init() {
|
||||
add_filter('pre_http_request', [$this, 'pre_http_request'], 10, 3);
|
||||
$post_action = isset($_POST['action']) ? sanitize_text_field(trim($_POST['action'])) : ' ';
|
||||
if( defined( 'DOING_AJAX' ) && DOING_AJAX && !in_array($post_action,['wpcy_set_config','wpcy_get_config'])){
|
||||
if (defined('DOING_AJAX') && DOING_AJAX && ! in_array($post_action, ['wpcy_set_config', 'wpcy_get_config'])) {
|
||||
return;
|
||||
}
|
||||
if (is_admin()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue