Skip to content

Commit 882af07

Browse files
authored
Merge pull request #2642 from rodrigoprimo/update-validated-sanitized-error-message
Security/ValidatedSanitizedInput: improve `InputNotValidated` error message
2 parents b2e3d0f + 4639b05 commit 882af07

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
@@ -175,7 +175,7 @@ static function ( $var_name ) {
175175

176176
if ( false === $validated ) {
177177
$this->phpcsFile->addError(
178-
'Detected usage of a possibly undefined superglobal array index: %s. Use isset() or empty() to check the index exists before using it',
178+
'Detected usage of a possibly undefined superglobal array index: %s. Check that the array index exists before using it.',
179179
$stackPtr,
180180
'InputNotValidated',
181181
$error_data

0 commit comments

Comments
 (0)