Fixed undefined $image_id in WC_Product_Variation::get_image_id()

This commit is contained in:
Claudio Sanches 2016-11-10 17:11:21 -02:00
parent d039e12f47
commit 57b75bb95d
1 changed files with 2 additions and 1 deletions

View File

@ -273,8 +273,9 @@ class WC_Product_Variation extends WC_Product_Simple {
$image_id = $this->get_prop( 'image_id', $context );
if ( 'view' === $context && ! $image_id ) {
$vimage_id = $this->parent_data['image_id'];
$image_id = $this->parent_data['image_id'];
}
return $image_id;
}