You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All output should be run through an escaping function (see the
Security sections in the WordPress Developer Handbooks), found '['.
(WordPress.XSS.EscapeOutput.OutputNotEscaped)
Locally, I added this (temporarily) check to circumvent the notification in the for-loop at WordPress\Sniffs\XSS\EscapeOutputSniff::process_token() -- right beneath the T_ARRAY check; copying its behavior, which works as intended:
Example code:
Notification example:
Locally, I added this (temporarily) check to circumvent the notification in the for-loop at
WordPress\Sniffs\XSS\EscapeOutputSniff::process_token()
-- right beneath theT_ARRAY
check; copying its behavior, which works as intended:PHPCS registers the two shorthand constants in
..\util\Tokens.php
The text was updated successfully, but these errors were encountered: