[wp-trac] [WordPress Trac] #15018: Filtering get_meta_sql for advanced queries

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 19:36:00 UTC 2010


#15018: Filtering get_meta_sql for advanced queries
-------------------------+--------------------------------------------------
 Reporter:  sc0ttkclark  |        Owner:  scribu  
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  3.1     
Component:  Plugins      |      Version:  3.1     
 Severity:  normal       |   Resolution:          
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------

Comment(by westi):

 You still need the context if call from WP_Query else the function is next
 to useless as you can't target any extra query variables you may have
 added - this is why apply_filters_ref_array exists os that we can pass
 objects as context.

 In the case of use in global scope without an object as context we should
 be able to cope with being passes either null or just a new Object().

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


More information about the wp-trac mailing list