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

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 05:04:05 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 dd32):

 .. That again a bit prettier:

 {{{
 $s = implode(',', array_fill(0, count($c), '%s') );
  4.15226 seconds

 $s = rtrim(str_repeat('%s,', count($c)), ',');
  2.81069 seconds

 $s = substr(str_repeat(',%s', count($c)), 1);
  2.60225 seconds }}}

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


More information about the wp-trac mailing list