Merge pull request #15362 from woocommerce/fix/product-csv-exporter-images
Product CSV Exporter - Fixed images URLs
This commit is contained in:
commit
6d0bdf9f42
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue