FILTER_SANITIZE_STRING is deprecated in PHP v.8.1
-
I am getting the same warning at my WP. 6.0.3 under PHP v.8.1:
PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecatedFILTER_SANITIZE_STRING
See: https://www.php.net/manual/en/filter.filters.sanitize.php
Strip tags and HTML-encode double and single quotes, optionally strip or encode special characters. Encoding quotes can be disabled by setting FILTER_FLAG_NO_ENCODE_QUOTES. Deprecated as of PHP 8.1.0The error occurs in:
[31-Oct-2022 17:53:56 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in \wp-content\plugins\wordpress-seo\src\conditionals\third-party\elementor-edit-conditional.php on line 22[31-Oct-2022 17:53:56 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in \wp-content\plugins\wordpress-seo\src\conditionals\third-party\elementor-edit-conditional.php on line 28
- The topic ‘FILTER_SANITIZE_STRING is deprecated in PHP v.8.1’ is closed to new replies.