Merge pull request #21929 from woocommerce/fix/21924

Revert parts of #20881
This commit is contained in:
Claudiu Lodromanean 2018-11-15 10:14:06 -08:00 committed by GitHub
commit 936fcfbc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 3.5.0
* @version 3.5.2
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -29,7 +29,7 @@ if ( ! is_a( $product, 'WC_Product' ) ) {
<?php do_action( 'woocommerce_widget_product_item_start', $args ); ?>
<a href="<?php echo esc_url( $product->get_permalink() ); ?>">
<?php echo wp_kses_post( $product->get_image() ); ?>
<?php echo $product->get_image(); ?>
<span class="product-title"><?php echo esc_html( $product->get_name() ); ?></span>
</a>
@ -37,7 +37,7 @@ if ( ! is_a( $product, 'WC_Product' ) ) {
<?php echo wp_kses_post( wc_get_rating_html( $product->get_average_rating() ) ); ?>
<?php endif; ?>
<?php echo wp_kses_post( $product->get_price_html() ); ?>
<?php echo $product->get_price_html(); ?>
<?php do_action( 'woocommerce_widget_product_item_end', $args ); ?>
</li>