Skip to content

janw-me/wpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test case for OutputEscaped bug

Usage

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)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Details

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages