• Resolved Ivan Privalov

    (@ivanpr)


    I am getting the same warning at my WP. 6.0.3 under PHP v.8.1:
    PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated

    FILTER_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.0

    The 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Ivan Privalov

    (@ivanpr)

    In the back-end the warning is also raised by:

    [31-Oct-2022 18:07:36 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ..\wp-content\plugins\wordpress-seo\src\integrations\admin\helpscout-beacon.php on line 110

    [31-Oct-2022 18:07:36 UTC] PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in ..\wp-content\plugins\wordpress-seo\src\conditionals\admin\estimated-reading-time-conditional.php on line 46

    Plugin Support Maybellyne

    (@maybellyne)

    Hello Ivan,

    I’m sorry that our plugin caused a problem on your site. There’s an open bug report that is under review by our product team.

    What’s next?
    Our product team will assess the severity of the issue and assign a priority level to the report. Our developers work on the highest priority issues first. We cannot give you an estimate of when they’ll start working on the issue.

    If you have any further information that may affect the prioritization or help our development team solve this bug, please feel invited to reply to this forum topic, and we’ll share the information with our product team. leave a comment or subscribe to the GitHub report to get updates on the issue.

    https://github.com/Yoast/wordpress-seo/issues/17991

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter Ivan Privalov

    (@ivanpr)

    Maybellyne, was the ticket solved already?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FILTER_SANITIZE_STRING is deprecated in PHP v.8.1’ is closed to new replies.