[wp-trac] [WordPress Trac] #25834: WP_Date_Query not allowed values possible

WordPress Trac noreply at wordpress.org
Tue Jan 20 06:49:03 UTC 2015


#25834: WP_Date_Query not allowed values possible
----------------------------------+---------------------------
 Reporter:  ChriCo                |       Owner:  boonebgorges
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  4.1
Component:  Query                 |     Version:  3.7
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch needs-docs  |     Focuses:
----------------------------------+---------------------------

Comment (by ChriCo):

 It seems, there is still an error in this implementation:


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

 this means, that 0:00 o'clock (midnight) is invalid. Don't be afraid of
 ghosts and witches. :)

 Shouldn't the 'min' for 'hour'-validation 0?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25834#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list