Test case for OutputEscaped bug
In composer.json
switch the package wp-coding-standards/wpcs
version to 2.
Run composer update
and composer phpcs
There should be no error.
Repeat this process with version 3 and there should be an error:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | ERROR | All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'Helpers'.
| | (WordPress.Security.EscapeOutput.OutputNotEscaped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
composer.json
is the same as the plugin where I encountered this problem, only some slugs are renamed.phpcs.xml.dist
I have added a few extra ignores, these are marked. Also renamed slugs.