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

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 19:19:11 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 scribu):

 > That way plugins can know which object is actually having it's query
 filtered otherwise it gets message.

 They already get the $meta_type as a parameter. Also, they can modify the
 'meta_query' var before get_meta_sql() is called.

 Also, what if I want to use get_meta_sql() in a plugin, but I don't have a
 {{{$this}}} to pass?

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


More information about the wp-trac mailing list