Ensure that `WP_Date_Query` accepts a value of `0` for 'hour'.
Props jim912. Fixes #34228. Built from https://develop.svn.wordpress.org/trunk@34989 git-svn-id: http://core.svn.wordpress.org/trunk@34954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b40e362711
commit
a19d63b7a5
|
@ -992,7 +992,7 @@ class WP_Date_Query {
|
|||
$format = $time = '';
|
||||
|
||||
// Hour
|
||||
if ( $hour ) {
|
||||
if ( null !== $hour ) {
|
||||
$format .= '%H.';
|
||||
$time .= sprintf( '%02d', $hour ) . '.';
|
||||
} else {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34988';
|
||||
$wp_version = '4.4-alpha-34989';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue