Skip to content

Commit

Permalink
Merge pull request #75 from ryanwelcher/fix/date-query-fatal
Browse files Browse the repository at this point in the history
Fixes fatal when there is no date queries selected
  • Loading branch information
ryanwelcher authored Jun 24, 2024
2 parents 22a0e14 + 10c09a4 commit 6aa4726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Traits/Date_Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 6aa4726

Please sign in to comment.