Title: Deprecated FILTER_SANITIZE_STRING
Last modified: March 7, 2023

---

# Deprecated FILTER_SANITIZE_STRING

 *  Resolved [FAKTOR VIER](https://wordpress.org/support/users/faktorvier/)
 * (@faktorvier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/)
 * Hi
 * I’ve already fond another post mentioned this problem, it was a few months ago
   and you answered that this issue is fixed in a version that was also published
   a few months ago. Sadly, the problem is not fixed, the deprecated code is still
   in the files as of version 3.12.5.
 * I hope you guys can fix this asap in a future version.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [Saurabh – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16537919)
 * Hi [@faktorvier](https://wordpress.org/support/users/faktorvier/)
 * Sorry for the inconvenience.
 * Unfortunately I was not able to reproduce the error on our lab sites with version
   3.12.5, could you help us with some additional information to make sure our team
   performs a further check on this? The info would be the following:
    - The complete entry where this error/warning is showing.
    - The current WordPress and PHP versions.
    - The results you get with a conflict test (create a backup, deactivate all 
      plugins except Smush and switch to a basic theme like Twenty Twenty Two.
 * Thanks in advance for your collaboration on this matter.
 * Kind regards
 * Luis
 *  Thread Starter [FAKTOR VIER](https://wordpress.org/support/users/faktorvier/)
 * (@faktorvier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16539380)
 * Hi [@wpmudev-support7](https://wordpress.org/support/users/wpmudev-support7/)
    - In the backend on any page
    - We use PHP 8.1
 * The part that you can’t reproduce does not make any sense, because the deprecated
   code is in your plugin. Just look into the plugin version 3.12.5 and search for**
   FILTER_SANITIZE_STRING**. You’ll find a few lines that use this constant. This
   constant is deprecated since 8.1 (see [https://www.php.net/manual/en/filter.filters.sanitize.php](https://www.php.net/manual/en/filter.filters.sanitize.php)).
   If you look into youre code and check the lines that those constants are used,
   you maybe can reproduce the problem better.
 * All in all, even though this problem may be random and not on every installation,
   you should not use this constant, since its deprecated.
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16547371)
 * Hi [@faktorvier](https://wordpress.org/support/users/faktorvier/)
 * I hope you are doing well.
 * Thank you for the report, I checked the plugin source and found it still uses
   that filter on a specific file.
 * We are going to report to our developers and implement a fix to it.
 * Best Regards
    Patrick Freitas
 *  Thread Starter [FAKTOR VIER](https://wordpress.org/support/users/faktorvier/)
 * (@faktorvier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16547388)
 * Hi [@wpmudevsupport12](https://wordpress.org/support/users/wpmudevsupport12/)
 * Sounds good. Thanks for the quick update.
 *  Thread Starter [FAKTOR VIER](https://wordpress.org/support/users/faktorvier/)
 * (@faktorvier)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16692438)
 * [@wpmudevsupport12](https://wordpress.org/support/users/wpmudevsupport12/) Its
   been two months now and you still have not released a simple fix for this problem?
   I hope you can release this fix asap…
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16695753)
 * Hi [@faktorvier](https://wordpress.org/support/users/faktorvier/)
 * I don’t have ETA on update on this. Please note that “deprecated” does not mean
   it’s forbidden to use it. It only means that it will be removed at some point
   and must be replaced in code by the time it is removed. Until then – it works
   just like it used to work.
 * I assure you that it will be taken care of. I also asked our Smush team if they
   could prioritize it so I hope it will be done soon.
 * Kind regards,
    Adam
 *  Thread Starter [FAKTOR VIER](https://wordpress.org/support/users/faktorvier/)
 * (@faktorvier)
 * [3 years ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16701128)
 * Hi [@wpmudev-support8](https://wordpress.org/support/users/wpmudev-support8/)
 * Glad to hear. I realise that a deprecated is not that bad, but its annoying to
   get unneccessairy, easy to fix deprecated notices on development/staging environments.
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16940235)
 * Hi [@faktorvier](https://wordpress.org/support/users/faktorvier/),
 * We do understand you, I can confirm our developers are already working on remedying
   the issues highlighted in this thread. While we cannot provide a specific timeline
   yet for the fix, you can get updates on our progress by subscribing to our roadmap
   at [https://wpmudev.com/roadmap/](https://wpmudev.com/roadmap/).
 * Once new versions are released, any pertinent changes will be described in the
   changelog, which you can find at:
   [https://wordpress.org/plugins/wp-smushit/#developers](https://wordpress.org/plugins/branda-white-labeling/#developers)
 * Seeing that this issue has been acknowledged and is being addressed, we’re marking
   this as resolved for now. However, if you have any queries, please don’t hesitate
   to ask. Thank you for your understanding.
 * Best Regards,
 * Nithin

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Deprecated FILTER_SANITIZE_STRING’ is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/deprecated-filter_sanitize_string/#post-16940235)
 * Status: resolved