mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Ensure that WP_Date_Query accepts a value of 0 for 'hour'.
Props jim912. Fixes #34228. git-svn-id: https://develop.svn.wordpress.org/trunk@34989 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -992,7 +992,7 @@ class WP_Date_Query {
|
||||
$format = $time = '';
|
||||
|
||||
// Hour
|
||||
if ( $hour ) {
|
||||
if ( null !== $hour ) {
|
||||
$format .= '%H.';
|
||||
$time .= sprintf( '%02d', $hour ) . '.';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user