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

WordPress Trac noreply at wordpress.org
Fri Oct 17 00:40:08 UTC 2014


#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:
----------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29932"]:
 {{{
 #!CommitTicketReference repository="" revision="29932"
 Add expectedIncorrectUsage flags for unit tests that generate invalid
 dates.

 Since [29925], passing an invalid date to WP_Date_Query will generate a
 _doing_it_wrong() notice. The current changeset adds the
 `@expectedIncorrectUsage` flag to those existing unit tests that generate
 invalid dates, such as those that test canonical redirect and is_404()
 conditionals.

 Fixes #25834.
 }}}

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


More information about the wp-trac mailing list