修复AJAX 引擎
This commit is contained in:
1 parent
c4512f2bc2
commit
616beb8c03
8 files changed
+50
-32
No files matched your search
@@ -255,6 +255,9 @@ class Admin {
|
||||
if (isset($config['query_context'])) {
|
||||
$clean['query_context'] = sanitize_key((string) $config['query_context']);
|
||||
}
|
||||
if (isset($config['term_id'])) {
|
||||
$clean['term_id'] = absint($config['term_id']);
|
||||
}
|
||||
foreach (['no_author', 'no_margin', 'is_card', 'skip_wrapper'] as $bool_key) {
|
||||
if (array_key_exists($bool_key, $config)) {
|
||||
$clean[$bool_key] = !empty($config[$bool_key]);
|
||||
|
||||
Reference in new issue
Block a user