From 8c2f2c76f333d159c17ab1920331e383c890beef Mon Sep 17 00:00:00 2001 From: Orestis Samaras <66624212+o-samaras@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:59:34 +0300 Subject: [PATCH] fix: update deprecated filter constant Signed-off-by: Orestis Samaras <66624212+o-samaras@users.noreply.github.com> --- src/Admin/CacheFlusher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/CacheFlusher.php b/src/Admin/CacheFlusher.php index 372f2c9..a2cb592 100644 --- a/src/Admin/CacheFlusher.php +++ b/src/Admin/CacheFlusher.php @@ -33,7 +33,7 @@ public function item(): MenuItem */ public function flush_cache() { - $wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_STRING); + $wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_SPECIAL_CHARS); if (!$wpNonce || !wp_verify_nonce($wpNonce, self::PURGE_ACTION)) { wp_nonce_ays(''); }