Fix order item name escaping apostrophe closes #9583

This commit is contained in:
roykho 2015-11-12 08:04:21 -08:00
parent bb24369119
commit 5cd3150c94
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ function wc_save_order_items( $order_id, $items ) {
if ( isset( $items['order_item_name'][ $item_id ] ) ) {
$wpdb->update(
$wpdb->prefix . 'woocommerce_order_items',
array( 'order_item_name' => wc_clean( $items['order_item_name'][ $item_id ] ) ),
array( 'order_item_name' => wc_clean( stripslashes( $items['order_item_name'][ $item_id ] ) ) ),
array( 'order_item_id' => $item_id ),
array( '%s' ),
array( '%d' )