[wp-trac] [WordPress Trac] #10864: Add replace method to wpdb

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


#10864: Add replace method to wpdb
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |       Owner:  ryan                   
     Type:  enhancement    |      Status:  new                    
 Priority:  normal         |   Milestone:  3.0                    
Component:  Database       |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------

Comment(by hakre):

 Please add a defensive check for the $type parameter to only contain
 'INSERT' or 'REPLACE'. Something like:

 {{{
   if ( ! in_array( $type, array( 'INSERT', 'REPLACE' ) )
     return false;
 }}}

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


More information about the wp-trac mailing list