From a19d63b7a59b4aa5710520338b87a0b999916fcb Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Fri, 9 Oct 2015 16:33:25 +0000 Subject: [PATCH] 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 --- wp-includes/date.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/date.php b/wp-includes/date.php index 9f64747bb3..e10ef4f861 100644 --- a/wp-includes/date.php +++ b/wp-includes/date.php @@ -992,7 +992,7 @@ class WP_Date_Query { $format = $time = ''; // Hour - if ( $hour ) { + if ( null !== $hour ) { $format .= '%H.'; $time .= sprintf( '%02d', $hour ) . '.'; } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index b855b2591a..5a10bf9997 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.