diff --git a/includes/Traits/Date_Query.php b/includes/Traits/Date_Query.php index 9bd185f..196d502 100644 --- a/includes/Traits/Date_Query.php +++ b/includes/Traits/Date_Query.php @@ -21,8 +21,8 @@ public function process_date_query(): void { $range = $date_query['range'] ?? false; if ( $date_query && $range && ! empty( $range ) ) { $date_queries = $this->process_date_range( $range ); - } else { + $date_queries = array(); $date_relationship = $date_query['relation'] ?? null; $date_primary = $date_query['date_primary'] ?? null; if ( $date_query && $date_relationship && $date_primary ) {