修复AJAX 引擎
This commit is contained in:
@@ -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