Skip to content

Commit

Permalink
Remove old sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
olatechpro committed Jul 24, 2024
1 parent 0aa6f2f commit 2d48273
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/calendar/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d48273

Please sign in to comment.