[wp-trac] [WordPress Trac] #47392: Update date_query condition to verify param data in proper order

WordPress Trac noreply at wordpress.org
Mon Aug 19 14:43:20 UTC 2019


#47392: Update date_query condition to verify param data in proper order
----------------------------+-----------------------------
 Reporter:  vishalkakadiya  |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  reviewing
 Priority:  normal          |   Milestone:  5.3
Component:  Date/Time       |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Description changed by SergeyBiryukov:

Old description:

> Here the code is doing something that it's using array values like
> $date_query['relation'] first then it's checking for ! is_array which
> looking not proper and also we are checking empty value late so I have
> updated them in this PR.
>
> Let me know if any other changes needed here. Thanks!

New description:

 Here the code is doing something that it's using array values like
 `$date_query['relation']` first then it's checking for `! is_array` which
 looking not proper and also we are checking empty value late so I have
 updated them in this PR.

 Let me know if any other changes needed here. Thanks!

--

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


More information about the wp-trac mailing list