Skip to content

Commit

Permalink
fix: update deprecated filter constant (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Orestis Samaras <66624212+o-samaras@users.noreply.github.com>
  • Loading branch information
o-samaras authored Aug 9, 2024
1 parent 9480b6b commit 2ec7c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/CacheFlusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
Expand Down

0 comments on commit 2ec7c01

Please # to comment.