removing extra slashes when order meta is saved in admin
This commit is contained in:
parent
2ce069ea2e
commit
3ba5aa3369
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue