From 4d5782e03f5f7dc7a620f78583dbe16bfb62c679 Mon Sep 17 00:00:00 2001 From: Burhan Nasir Date: Tue, 28 May 2024 16:53:07 +0500 Subject: [PATCH] Fix: deprecated FILTER_SANITIZE_STRING warning --- classes/class-wp-nr-dashboard.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/class-wp-nr-dashboard.php b/classes/class-wp-nr-dashboard.php index 276731b..7ab4dff 100644 --- a/classes/class-wp-nr-dashboard.php +++ b/classes/class-wp-nr-dashboard.php @@ -24,7 +24,7 @@ public function __construct() { * Save settings */ public function save_settings() { - $nonce = filter_input( INPUT_POST, 'wp_nr_settings', FILTER_SANITIZE_STRING ); + $nonce = filter_input( INPUT_POST, 'wp_nr_settings', FILTER_SANITIZE_SPECIAL_CHARS ); if ( wp_verify_nonce( $nonce, 'wp_nr_settings' ) ) { $capture_url = filter_input( INPUT_POST, 'wp_nr_capture_urls' ); @@ -75,7 +75,7 @@ public function dashboard_page() { $is_capture = WP_NR_Helper::is_capture_url(); ?>
-

+

- > -

+ > +