wc_product_force_unique_sku edit context

This commit is contained in:
Mike Jolley 2017-02-24 11:43:58 +00:00
parent f9b17ea681
commit 6bc97dce91
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ function wc_product_force_unique_sku( $product_id ) {
if ( $product ) {
try {
$current_sku = $product->get_sku();
$current_sku = $product->get_sku( 'edit' );
$new_sku = wc_product_generate_unique_sku( $product_id, $current_sku );
if ( $current_sku !== $new_sku ) {