wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

Exclude string from escape warning #162

Closed NicktheGeek closed 6 years ago

NicktheGeek commented 6 years ago

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 https://github.com/wp-cli/scaffold-command/issues/109