Fix order item name escaping apostrophe closes #9583
This commit is contained in:
parent
bb24369119
commit
5cd3150c94
|
@ -197,7 +197,7 @@ function wc_save_order_items( $order_id, $items ) {
|
||||||
if ( isset( $items['order_item_name'][ $item_id ] ) ) {
|
if ( isset( $items['order_item_name'][ $item_id ] ) ) {
|
||||||
$wpdb->update(
|
$wpdb->update(
|
||||||
$wpdb->prefix . 'woocommerce_order_items',
|
$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( 'order_item_id' => $item_id ),
|
||||||
array( '%s' ),
|
array( '%s' ),
|
||||||
array( '%d' )
|
array( '%d' )
|
||||||
|
|
Loading…
Reference in New Issue