You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Came across a report on the forums, where the site's logs report the following:
PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 189
Oh sorry @a-danae ! I just found this issue after opening a PR and noticed you assigned yourself to it a month ago. It was only a small change but I hope you weren't also in the middle of fixing it
Describe the bug
Came across a report on the forums, where the site's logs report the following:
PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 189
As it appears, it would be beneficial to use htmlspecialchars() instead, as FILTER_SANITIZE_STRING (int) ID of “string” filter is deprecated as of PHP 8.1.0.
Additional context
Per the search results, linked here, it appears in the files:
Moreover htmlspecialchars() is compatible with current and future PHP versions, as I understand.
For context:
#hc
The text was updated successfully, but these errors were encountered: