Merge pull request #15362 from woocommerce/fix/product-csv-exporter-images

Product CSV Exporter - Fixed images URLs
This commit is contained in:
Mike Jolley 2017-05-30 18:39:54 +01:00 committed by GitHub
commit 6d0bdf9f42
1 changed files with 2 additions and 1 deletions

View File

@ -232,12 +232,13 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter {
$images = array();
foreach ( $image_ids as $image_id ) {
$image = wp_get_attachment_image_src( $product->get_image_id( 'edit' ), 'full' );
$image = wp_get_attachment_image_src( $image_id, 'full' );
if ( $image ) {
$images[] = $image[0];
}
}
return implode( ', ', $images );
}