修复了一些问题

This commit is contained in:
2026-08-23 20:59:34 +08:00
parent af52f9e94d
commit d7634d1ff6
9 changed files with 316 additions and 24 deletions
+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);
}