[wp-trac] [WordPress Trac] #15158: wpdb insert & update with null values

WordPress Trac noreply at wordpress.org
Fri Jan 4 20:07:29 UTC 2013


#15158: wpdb insert & update with null values
-------------------------+-----------------------------
 Reporter:  westi        |       Owner:  sorich87
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Future Release
Component:  Database     |     Version:  3.0.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by miqrogroove):

 Instead of calling unset(), you could reset $args=array(); at the top of
 your first if block and then foreach { $args[] = $values[$loc_index] }

 Otherwise, $args and $values have the same information being duplicated
 unnecessarily anyway.

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


More information about the wp-trac mailing list