WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2015 04:32:59 PM (4 years ago)
Author:
boonebgorges
Message:

Ensure that WP_Date_Query accepts a value of 0 for 'hour'.

Props jim912.
Fixes #34228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/date.php

    r33803 r34989  
    993993
    994994        // Hour
    995         if ( $hour ) {
     995        if ( null !== $hour ) {
    996996            $format .= '%H.';
    997997            $time   .= sprintf( '%02d', $hour ) . '.';
Note: See TracChangeset for help on using the changeset viewer.