[wp-trac] [WordPress Trac] #25775: WP_Date_Query table prefixing
WordPress Trac
noreply at wordpress.org
Tue Jun 10 23:39:50 UTC 2014
#25775: WP_Date_Query table prefixing
------------------------------------------------------+------------------
Reporter: ew_holmes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Query | Version: 3.7
Severity: major | Resolution:
Keywords: 4.0-early needs-refresh needs-unit-tests | Focuses:
------------------------------------------------------+------------------
Comment (by ew_holmes):
Viper007Bond: I tried sitting down to work with what you had written an
expand on it, but really couldn't think of a clean way of approaching it.
The filter definitely cannot be salvaged with an associative array,
without some arbitrary checks later on (as mine did).
Here's an attempt to catch any existing filters that would be adding into
valid columns. The only edge case I can think of not catching is someone
trying to remove valid columns.
Perhaps altering the use of a filter ASAP is acceptable? Would need some
Core Contrib opinions on that matter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25775#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list