Update class-wc-admin-duplicate-product.php

PHP Strict standards:  Only variables should be assigned by reference
This commit is contained in:
Gregory Karpinsky 2014-04-05 12:58:28 -04:00
parent ec5abdd0f6
commit 06ee47a611
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 )