Skip to content

Commit 2ec7c01

Browse files
authored
fix: update deprecated filter constant (#34)
Signed-off-by: Orestis Samaras <66624212+o-samaras@users.noreply.github.com>
1 parent 9480b6b commit 2ec7c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Admin/CacheFlusher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function item(): MenuItem
3333
*/
3434
public function flush_cache()
3535
{
36-
$wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_STRING);
36+
$wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_SPECIAL_CHARS);
3737
if (!$wpNonce || !wp_verify_nonce($wpNonce, self::PURGE_ACTION)) {
3838
wp_nonce_ays('');
3939
}

0 commit comments

Comments
 (0)