修复了一些问题

This commit is contained in:
kate522 committed 2026-08-23 20:59:34 +08:00
1 parent af52f9e94d
commit d7634d1ff6
9 files changed
+316 -24

No files matched your search

+4
View File
@@ -92,6 +92,10 @@ abstract class ControllerBase {
case 'array':
$out[$key] = is_array($val) ? $val : [];
break;
case 'attachment_ids':
$ids = is_array($val) ? array_filter(array_map('absint', $val)) : [];
$out[$key] = array_values(array_unique($ids));
break;
default:
$out[$key] = sanitize_text_field($val);
}