[wp-trac] [WordPress Trac] #9124: meta_compare needs to allow "in" as well

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 04:38:13 UTC 2009


#9124: meta_compare needs to allow "in" as well
-------------------------+--------------------------------------------------
 Reporter:  Otto42       |       Owner:  anonymous              
     Type:  enhancement  |      Status:  new                    
 Priority:  normal       |   Milestone:  3.0                    
Component:  Query        |     Version:  2.7                    
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------

Comment(by hakre):

 just reviewed the patch, instead of

 {{{ rtrim(str_repeat('%s,', count($q['meta_value'])), ','); }}}

 it might be less intensive using substr instead of rtrim:

 {{{ substr(str_repeat(',%s', count($q['meta_value'])), 1); }}}

 just an idea.

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


More information about the wp-trac mailing list