Title: FILTER_SANITIZE_STRING warning
Last modified: July 19, 2023

---

# FILTER_SANITIZE_STRING warning

 *  Resolved [roadlink](https://wordpress.org/support/users/roadlink/)
 * (@roadlink)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/filter_sanitize_string-warning/)
 * Hi there,
 * This plugin uses the deprecated ( as of PHP 8.1.0 ) `FILTER_SANITIZE_STRING` 
   in ml-slider\admin\Table.php line 137.
 *     ```wp-block-code
           protected function process_action()
           {
               if (isset($_POST['_wpnonce']) && ! empty($_POST['_wpnonce'])) {
                   $nonce  = filter_input( INPUT_POST, '_wpnonce', FILTER_SANITIZE_STRING );
                   $action = 'bulk-' . $this->_args['plural'];
                   if ( ! wp_verify_nonce($nonce, $action)) {
                       wp_die( 'Nope! Security check failed!' );
                   }
               }
       ```
   
 * According to PHP.net it should be replaced with `htmlspecialchars()` – [https://www.php.net/manual/en/function.htmlspecialchars.php](https://www.php.net/manual/en/function.htmlspecialchars.php)
 * Looking forward to an update on this issue.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * (@stevejburge)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/filter_sanitize_string-warning/#post-16907327)
 * Thanks for catching that [@roadlink](https://wordpress.org/support/users/roadlink/)
 * Yes, 100% we’ll get that done.
 * We’re working a clean up of all these items before WordPress 6.3 arrives with
   better support for 8.1 and 8.2.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3523572)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/filter_sanitize_string-warning/#post-16907327)
 * Status: resolved