Skip to content

Commit acc6580

Browse files
committed
Update Latest-Posts-Hover.php
1 parent 67405b2 commit acc6580

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

widgets/Latest-Posts-Hover.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,13 +1248,12 @@ protected function render()
12481248
'year' => intval($_GET['date']),
12491249
];
12501250
}
1251-
else if(!substr($_GET['date'], -1) == 'm') {
1252-
// Full date provided (YYYY-MM-DD) - reuse previous logic
1251+
else if ( strlen($_GET['date']) === 10) {
1252+
// Full date provided (YYYY-MM-DD) - reuse previous logic
12531253
$date_query = [
12541254
'year' => intval(substr($_GET['date'], 0, 4)),
12551255
'month' => intval(substr($_GET['date'], 5, 2)),
12561256
'day' => intval(substr($_GET['date'], 8, 2)),
1257-
'inclusive' => true,
12581257
];
12591258
}
12601259
$args['date_query'] = $date_query;

0 commit comments

Comments
 (0)