apply changes from feedback

This commit is contained in:
Ron Rennick 2020-08-28 11:34:32 -03:00
parent 84d6d6c525
commit e49527cf9d
3 changed files with 4 additions and 5 deletions

View File

@ -1481,8 +1481,7 @@ if ( ! function_exists( 'woocommerce_show_product_images' ) ) {
$post_thumbnail_id = array_shift( $gallery_image_ids );
}
}
$args = compact( 'post_thumbnail_id', 'gallery_image_ids' );
wc_get_template( 'single-product/product-image.php', $args );
wc_get_template( 'single-product/product-thumbnails.php', array( 'post_thumbnail_id' => $post_thumbnail_id ) );
}
}
if ( ! function_exists( 'woocommerce_show_product_thumbnails' ) ) {

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 4.5.0
* @version 4.6.0
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 4.5.0
* @version 4.6.0
*/
defined( 'ABSPATH' ) || exit;