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:
commit
47fc9b2922
|
@ -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