diff --git a/includes/admin/post-types/meta-boxes/class-wc-meta-box-product-data.php b/includes/admin/post-types/meta-boxes/class-wc-meta-box-product-data.php index d0301189105..947dc724313 100644 --- a/includes/admin/post-types/meta-boxes/class-wc-meta-box-product-data.php +++ b/includes/admin/post-types/meta-boxes/class-wc-meta-box-product-data.php @@ -968,8 +968,8 @@ class WC_Meta_Box_Product_Data { wp_set_object_terms( $post_id, $product_shipping_class, 'product_shipping_class'); // Unique SKU - $sku = get_post_meta($post_id, '_sku', true); - $new_sku = esc_html( trim( stripslashes( $_POST['_sku'] ) ) ); + $sku = get_post_meta( $post_id, '_sku', true ); + $new_sku = woocommerce_clean( stripslashes( $_POST['_sku'] ) ); if ( $new_sku == '' ) { update_post_meta( $post_id, '_sku', '' );