Escape sku input properly for quickedit

This commit is contained in:
Gerhard Potgieter 2018-07-10 10:56:49 +02:00
parent af98ef66e7
commit ac09473853
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class WC_Admin_Post_Types {
if ( ! empty( $new_sku ) ) {
$unique_sku = wc_product_has_unique_sku( $post_id, $new_sku );
if ( $unique_sku ) {
$product->set_sku( $new_sku );
$product->set_sku( wc_clean( wp_unslash( $new_sku ) ) );
}
} else {
$product->set_sku( '' );