PHPCS fixes

This commit is contained in:
Gerhard 2019-01-29 13:36:16 +02:00
parent e74f0acc19
commit 94f64f3851
1 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@ if ( ! function_exists( 'woocommerce_content' ) ) {
<?php do_action( 'woocommerce_no_products_found' ); ?>
<?php
<?php
endif;
}
@ -1066,7 +1066,7 @@ if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
* Show the product title in the product loop. By default this is an H2.
*/
function woocommerce_template_loop_product_title() {
echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() . '</h2>';
echo '<h2 class="woocommerce-loop-product__title">' . esc_html( get_the_title() ) . '</h2>';
}
}
if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {