Merge pull request #4068 from BFTrick/sanitzie-admin-order-meta

Removing Extra Slashes When Order Meta is Saved in Admin
This commit is contained in:
Mike Jolley 2013-11-08 07:58:25 -08:00
commit 47fc9b2922
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(