fix(audit L1): queryType null fällt wie bei Divi (isset) auf post_types zurück; Skalare lesen wie sanitize_key

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-20 00:20:09 +02:00
co-authored by Claude Sonnet 5.5
parent f754772beb
commit 6e84138979
2 changed files with 6 additions and 3 deletions
@@ -40,6 +40,8 @@ final class ValueCleanerTest extends TestCase
'attachment among others' => [$post + ['subTypes' => $types('post', 'attachment')]],
'only unknown types (Divi falls back to any)' => [$post + ['subTypes' => $types('gibtesnicht')]],
'comma string with any' => [$post + ['subTypes' => 'post, ANY']],
'queryType null (isset: post_types), no subTypes' => [['enable' => 'on', 'queryType' => null]],
'subTypes null' => [$post + ['subTypes' => null]],
'entries without value' => [$post + ['subTypes' => [['label' => 'x']]]],
];
}