Merge pull request #5280 from tivnet/patch-1

Update class-wc-admin-duplicate-product.php
This commit is contained in:
Mike Jolley 2014-04-07 09:23:25 +01:00
commit c309fc56c0
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class WC_Admin_Duplicate_Product {
$this->duplicate_post_meta( $post->ID, $new_post_id );
// Copy the children (variations)
if ( $children_products =& get_children( 'post_parent='.$post->ID.'&post_type=product_variation' ) ) {
if ( $children_products = get_children( 'post_parent='.$post->ID.'&post_type=product_variation' ) ) {
if ( $children_products )
foreach ( $children_products as $child )