Handle auto drafts

Fixes #13361
This commit is contained in:
Mike Jolley 2017-02-27 14:40:48 +00:00
parent 194ed85d0e
commit 84a4c3415c
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple
WHERE post_type = 'product_variation'
AND post_parent = %d
",
$previous_name,
$previous_name ? $previous_name : __( 'Auto Draft' ),
$new_name,
$product->get_id()
) );