New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude string from escape warning #162

Merged
merged 1 commit into from Jul 20, 2018

Conversation

2 participants
@NicktheGeek

NicktheGeek commented Jul 20, 2018

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

Nick Croft
Exclude string from escape warning
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 this to the 1.1.4 milestone Jul 20, 2018

@schlessera schlessera merged commit 0065117 into wp-cli:master Jul 20, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment