audit clean-up

add 'no dates' logic
This commit is contained in:
2026-02-22 19:05:49 -08:00
parent 999c2cc866
commit 9bb2171b92
9 changed files with 291 additions and 76 deletions
+15 -3
View File
@@ -245,9 +245,21 @@ function hssm_get_preview_slides_for_date( $date, $site_slug = '' ) {
$meta_query = array(
'relation' => 'AND',
array(
'key' => '_hssm_start_date',
'value' => $date,
'compare' => '<=',
'relation' => 'OR',
array(
'key' => '_hssm_start_date',
'value' => '',
'compare' => '=',
),
array(
'key' => '_hssm_start_date',
'value' => $date,
'compare' => '<=',
),
array(
'key' => '_hssm_start_date',
'compare' => 'NOT EXISTS',
),
),
array(
'relation' => 'OR',