Escape sku input properly for quickedit
This commit is contained in:
parent
af98ef66e7
commit
ac09473853
|
@ -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( '' );
|
||||
|
|
Loading…
Reference in New Issue