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
Hi there,
This plugin uses the deprecated ( as of PHP 8.1.0 ) \facebook-for-woocommerce\includes\Framework\Helper.php line 141 and also lne 143.
According to PHP.net it should be replaced with htmlspecialchars() – https://www.php.net/manual/en/function.htmlspecialchars.php
Looking forward to an update on this issue.
Thank you!
public static function str_to_ascii( $string ) { // strip ASCII chars 32 and under $string = filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW ); // strip ASCII chars 127 and higher return filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH ); }
The text was updated successfully, but these errors were encountered:
Thanks for the report @bsahins, we'll update here when the fix is released.
Sorry, something went wrong.
Hey guys, any update on this? It's been a year and we're still getting the deprecated message.
Kindly fix this, this is causing a mayhem in my debug log file
👋🏻 @ned-bs @WouterBossen @theavijitsarkar This issue has been addressed and the fix should be included in next week's release.
rawdreeg
Successfully merging a pull request may close this issue.
Hi there,
This plugin uses the deprecated ( as of PHP 8.1.0 ) \facebook-for-woocommerce\includes\Framework\Helper.php line 141 and also lne 143.
According to PHP.net it should be replaced with htmlspecialchars() – https://www.php.net/manual/en/function.htmlspecialchars.php
Looking forward to an update on this issue.
Thank you!
public static function str_to_ascii( $string ) { // strip ASCII chars 32 and under $string = filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW ); // strip ASCII chars 127 and higher return filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH ); }
The text was updated successfully, but these errors were encountered: