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
Since WordPress 5.5, we are able to pass argument to a template: https://make.wordpress.org/core/2020/07/17/passing-arguments-to-template-files-in-wordpress-5-5/
However, when doing so the VIP coding standards flags this as an undefined variable.
VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
Pass arguments variable to templates without receiving a warning.
Any time the arguments are pass and not used, perhaps?
Arguments passed as a variable to templates.
Nothing at this time.
The text was updated successfully, but these errors were encountered:
Correct me if I'm wrong, but wasn't this addressed by adding the allowUndefinedVariablesInFileScope property in PR #690 (included in VIPCS 2.3.3) ?
allowUndefinedVariablesInFileScope
Sorry, something went wrong.
No branches or pull requests
What problem would the enhancement address for VIP?
Since WordPress 5.5, we are able to pass argument to a template: https://make.wordpress.org/core/2020/07/17/passing-arguments-to-template-files-in-wordpress-5-5/
However, when doing so the VIP coding standards flags this as an undefined variable.
Describe the solution you'd like
Pass arguments variable to templates without receiving a warning.
What code should be reported as a violation?
Any time the arguments are pass and not used, perhaps?
What code should not be reported as a violation?
Arguments passed as a variable to templates.
Additional context
Nothing at this time.
The text was updated successfully, but these errors were encountered: