Product gallery metabox should use thumbnails

Not full size images.
This commit is contained in:
Dalton Rooney 2013-03-21 13:04:15 -03:00
parent 1853d639a8
commit 00e54abdb2
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ function woocommerce_product_images_box() {
if ( $attachments )
foreach ( $attachments as $attachment_id ) {
echo '<li class="image" data-attachment_id="' . $attachment_id . '">
' . wp_get_attachment_image( $attachment_id, 'full' ) . '
' . wp_get_attachment_image( $attachment_id, 'thumbnail' ) . '
<ul class="actions">
<li><a href="#" class="delete" title="' . __( 'Delete image', 'woocommerce' ) . '">' . __( 'Delete', 'woocommerce' ) . '</a></li>
</ul>
@ -161,4 +161,4 @@ function woocommerce_product_images_box() {
});
</script>
<?php
}
}