[wp-trac] [WordPress Trac] #32115: Extend functionality of WP_Date_Query beyond core tables

WordPress Trac noreply at wordpress.org
Fri Apr 24 14:55:06 UTC 2015


#32115: Extend functionality of WP_Date_Query beyond core tables
-------------------------+-----------------------------
 Reporter:  transom      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Date/Time    |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Class WP_Date_Query in wp-includes/date.php already allows filtering of
 the valid columns. But when constructing the query limits the output to
 the known data fields in the core tables. The attached patch adds a filter
 over the known_columns so that the entire class can be used to generate
 SQL clauses on tables beyond the core tables.

 Yes, the class could be extended with the validate_column method
 overloaded but why??

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list