[wp-trac] [WordPress Trac] #31067: WP_Date_Query - broken hour-validation

WordPress Trac noreply at wordpress.org
Tue Jan 20 08:21:11 UTC 2015


#31067: WP_Date_Query - broken hour-validation
--------------------------+-----------------------------
 Reporter:  ChriCo        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It seems, there is still an error in the implementation of #25834:

 {{{
 $min_max_checks['hour'] = array(
         'min' => 1,
         'max' => 23
 );
 }}}

 This means, that 0:00 o'clock (midnight) is invalid.  Shouldn't the 'min'
 for 'hour'-validation 0?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31067>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list