Skip to content

Commit 625f221

Browse files
committed
ValidatedSanitizedInput: throw unslash/sanitization errors for null coalesced variable
1 parent 449ea64 commit 625f221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Sniffs/Security/ValidatedSanitizedInputSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function ( $symbol ) {
151151
}
152152

153153
// If this is a comparison ('a' == $_POST['foo']), sanitization isn't needed.
154-
if ( $this->is_comparison( $stackPtr ) ) {
154+
if ( $this->is_comparison( $stackPtr, false ) ) {
155155
return;
156156
}
157157

0 commit comments

Comments
 (0)