diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index c448e016..fee03274 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1197,10 +1197,7 @@ public function get_filters() // Sanitize and validate any newly added filters foreach ($old_filters as $key => $old_value) { - if (isset($_GET[$key]) && false !== ($new_value = $this->sanitize_filter( - $key, - sanitize_text_field($_GET[$key]) - ))) { + if (isset($_GET[$key]) && false !== ($new_value = sanitize_text_field($_GET[$key]))) { $filters[$key] = $new_value; } else { $filters[$key] = $old_value;