Skip to content

Exclude string from escape warning#162

Merged
schlessera merged 1 commit intowp-cli:masterfrom
NicktheGeek:update-plugin-scaffold-wpcs
Jul 20, 2018
Merged

Exclude string from escape warning#162
schlessera merged 1 commit intowp-cli:masterfrom
NicktheGeek:update-plugin-scaffold-wpcs

Conversation

@NicktheGeek
Copy link

The bootstrap.php file generates an error in wpcs sniff because there are two unescapped items. This error is generated with the WordPress files are not loaded by the bootstrap file, so the escape functions are not available.

The solve is to use a line comment that will prevent that from generating an error in the sniff.

addresses #109

The bootstrap.php file generates an error in wpcs sniff because there are two unescapped items. This error is generated with the WordPress files are not loaded by the bootstrap file, so the escape functions are not available.

The solve is to use a line comment that will prevent that from generating an error in the sniff.
@schlessera schlessera added the command:scaffold-plugin Related to 'scaffold plugin' command label Jul 20, 2018
@schlessera schlessera added this to the 1.1.4 milestone Jul 20, 2018
@schlessera schlessera merged commit 0065117 into wp-cli:master Jul 20, 2018
danielbachhuber pushed a commit that referenced this pull request Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:scaffold-plugin Related to 'scaffold plugin' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants