diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 5b1c34e7054..0b4aefc1689 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -728,16 +728,16 @@ if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) { */ function woocommerce_get_product_thumbnail( $size = 'shop_catalog', $deprecated1 = 0, $deprecated2 = 0 ) { global $post; - $size = apply_filters( 'single_product_archive_thumbnail_size', 'shop_catalog' ); + $image_size = apply_filters( 'single_product_archive_thumbnail_size', $size ); if ( has_post_thumbnail() ) { $props = wc_get_product_attachment_props( get_post_thumbnail_id(), $post ); - return get_the_post_thumbnail( $post->ID, $size, array( + return get_the_post_thumbnail( $post->ID, $image_size, array( 'title' => $props['title'], 'alt' => $props['alt'], ) ); } elseif ( wc_placeholder_img_src() ) { - return wc_placeholder_img( $size ); + return wc_placeholder_img( $image_size ); } } }