-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix incompatibilities with PHP 8.1 #2668
Conversation
// phpcs:ignore WordPress.Security.NonceVerification.Recommended | ||
$enable = filter_var( $_GET['a8c-debug'] ?? '', FILTER_SANITIZE_STRING ); | ||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized | ||
$enable = $_GET['a8c-debug'] ?? ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could sanitize_text_field()
be used here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GaryJones yes, but we use $enable
only to compare its value against two predefined constants, that is why I decided not to waste CPU cycles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
r2055-stacks |
Description
This PR fixes incompatibilities with PHP 8.1 described in #2667.
Changelog Description
Plugin Updated: VIP Init
Fix incompatibilities with PHP 8.1
Plugin Updated: VIP Search
Fix incompatibilities with PHP 8.1
Plugin Updated: VIP Helpers
Fix incompatibilities with PHP 8.1
Checklist
Please make sure the items below have been covered before requesting a review:
Steps to Test
The CI should pass; PHP 8.1 will still fail.