We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Quite a few warnings are generated which I feel are excessive, specifically in regards to checking variables before using them.
I often use a construct like this:
if ( ! empty( $_SERVER['this_and_that'] ) ) { $my_variable = wp_unslash( $_SERVER['this_and_that'] ); } else { $my_variable = 'Is something else'; }
But here, it seems like the plugin checker wants me to use something like this:
if ( isset( $_SERVER['this_and_that'] ) && ! empty( $_SERVER['this_and_that'] ) ) { $my_variable = wp_unslash( $_SERVER['this_and_that'] ); } else { $my_variable = 'Is something else'; }
Why?
The empty() construct allows me to check for existence and content ...
The text was updated successfully, but these errors were encountered:
This is a question for the WPCS repo, but I am pretty sure that‘s already explained there somewhere.
Sorry, something went wrong.
No branches or pull requests
Quite a few warnings are generated which I feel are excessive, specifically in regards to checking variables before using them.
I often use a construct like this:
But here, it seems like the plugin checker wants me to use something like this:
Why?
The empty() construct allows me to check for existence and content ...
The text was updated successfully, but these errors were encountered: