[wp-trac] [WordPress Trac] #14997: Single filter for all WP_Query clauses

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 13 08:49:13 UTC 2010


#14997: Single filter for all WP_Query clauses
-------------------------+--------------------------------------------------
 Reporter:  scribu       |        Owner:          
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  3.1     
Component:  Query        |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------

Comment(by scribu):

 Replying to [comment:15 hakre]:
 > First patch that deals with notices attached. Removed variables fall
 back on their default values.

 That will cause more confusion than notices. Suppose you have two filters:

 The first one modifies JOIN and WHERE.

 The second one unsets the JOIN clause.

 You end up with an SQL error because the JOIN clause (default) no longer
 contains the tables needed for the (modified) WHERE clause.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14997#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list