Fix phpcs violations

This commit is contained in:
Rodrigo Primo 2018-07-24 10:50:19 -03:00
parent a19fff2da0
commit 4ceee4cfc9
1 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,6 @@
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.3.0
*/
@ -25,15 +24,15 @@ global $product;
<?php do_action( 'woocommerce_widget_product_item_start', $args ); ?>
<a href="<?php echo esc_url( $product->get_permalink() ); ?>">
<?php echo $product->get_image(); ?>
<span class="product-title"><?php echo $product->get_name(); ?></span>
<?php echo wp_kses_post( $product->get_image() ); ?>
<span class="product-title"><?php echo esc_html( $product->get_name() ); ?></span>
</a>
<?php if ( ! empty( $show_rating ) ) : ?>
<?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
<?php echo wp_kses_post( wc_get_rating_html( $product->get_average_rating() ) ); ?>
<?php endif; ?>
<?php echo $product->get_price_html(); ?>
<?php echo wp_kses_post( $product->get_price_html() ); ?>
<?php do_action( 'woocommerce_widget_product_item_end', $args ); ?>
</li>