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

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 1 23:24:57 UTC 2010


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

Comment(by hakre):

 Replying to [comment:6 scribu]:
 > That will be easy to spot if you have WP_DEBUG on.

 Well that's nice. Being lazy on the implementation and leaving the work to
 debuggers.

 I think you didn't get my point. It's not about whether or not unset
 variables are able to spot.

 It's about the matter of fact that the filter should not be able to break
 the data in the function in such an elementary way (unsetting local
 function variables). Just making my mind about the constraints of the
 suggested implementation.

 But I have no clue how to rate deleted array keys when the data get's back
 into that function. Empty string? The original string? Does there need to
 be a "where" inside $where?  I was just giving note on the issue which
 went through my head.

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


More information about the wp-trac mailing list