[wp-trac] [WordPress Trac] #31001: New notices and warnings in WP_Date_Query

WordPress Trac noreply at wordpress.org
Wed Jan 14 16:50:12 UTC 2015


#31001: New notices and warnings in WP_Date_Query
--------------------------+---------------------------
 Reporter:  dlh           |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1.1
Component:  Query         |     Version:  4.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31179"]:
 {{{
 #!CommitTicketReference repository="" revision="31179"
 Support array values in `WP_Date_Query::validate_date_values()`.

 Introduced in [29925], `validate_date_values()` throws `_doing_it_wrong()`
 notices when values passed as part of a `WP_Date_Query` do not reflect
 actual
 dates. However, the validation did not account properly for the case where
 an
 array of multiple values is passed, as when doing IN or BETWEEN queries.

 Props dlh.
 Fixes #31001 for trunk.
 }}}

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


More information about the wp-trac mailing list