Skip to content

Commit

Permalink
Update Utils.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdforst committed Jun 27, 2024
1 parent d1f257a commit 50a60f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ public static function titleFilter($where, $wp_query)
*/
public static function validateDate($date)
{
if (empty($date)) {
return false;
}

if ($date instanceof \DateTime) {
return true;
}
Expand Down

0 comments on commit 50a60f4

Please sign in to comment.