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

WordPress Trac noreply at wordpress.org
Sun May 26 11:39:42 UTC 2019


#47392: Update date_query condition to verify param data in proper order
----------------------------+-----------------------------
 Reporter:  vishalkakadiya  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  trunk
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list