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(''); }