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:
co-authored by
Claude Sonnet 5.5
parent
f754772beb
commit
6e84138979
@@ -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']]]],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user