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:
Boone Gorges
2015-10-09 16:32:59 +00:00
parent eeea5d753a
commit dc2b7c634d
3 changed files with 31 additions and 1 deletions

View File

@@ -992,7 +992,7 @@ class WP_Date_Query {
$format = $time = '';
// Hour
if ( $hour ) {
if ( null !== $hour ) {
$format .= '%H.';
$time .= sprintf( '%02d', $hour ) . '.';
} else {