removing extra slashes when order meta is saved in admin

This commit is contained in:
Patrick Rauland 2013-11-06 10:30:36 -06:00
parent 2ce069ea2e
commit 3ba5aa3369
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class WC_Meta_Box_Order_Items {
foreach ( $meta_keys as $id => $meta_key ) {
$meta_value = ( empty( $meta_values[ $id ] ) && ! is_numeric( $meta_values[ $id ] ) ) ? '' : $meta_values[ $id ];
$meta_value = stripslashes( $meta_value );
$wpdb->update(
$wpdb->prefix . "woocommerce_order_itemmeta",
array(