Ticket #14173: 14173.diff
File 14173.diff, 755 bytes (added by , 14 years ago) |
---|
-
wp-includes/meta.php
53 53 $_meta_value = $meta_value; 54 54 $meta_value = maybe_serialize( stripslashes_deep($meta_value) ); 55 55 56 do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value ); 57 56 58 $wpdb->insert( $table, array( 57 59 $column => $object_id, 58 60 'meta_key' => $meta_key, … … 190 192 if ( !count( $meta_ids ) ) 191 193 return false; 192 194 195 196 do_action( "delete_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value ); 197 193 198 $query = "DELETE FROM $table WHERE $id_column IN( " . implode( ',', $meta_ids ) . " )"; 194 199 195 200 $count = $wpdb->query($query);