diff --git a/includes/Utils.php b/includes/Utils.php index 02568da..b8f7f47 100644 --- a/includes/Utils.php +++ b/includes/Utils.php @@ -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; }