mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
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 = '';
|
$format = $time = '';
|
||||||
|
|
||||||
// Hour
|
// Hour
|
||||||
if ( $hour ) {
|
if ( null !== $hour ) {
|
||||||
$format .= '%H.';
|
$format .= '%H.';
|
||||||
$time .= sprintf( '%02d', $hour ) . '.';
|
$time .= sprintf( '%02d', $hour ) . '.';
|
||||||
} else {
|
} else {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user