diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index e2e08da9684..b1fa994903a 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -910,7 +910,7 @@ if ( ! function_exists( 'woocommerce_content' ) ) { - ' . get_the_title() . ''; + echo '

' . get_the_title() . '

'; // phpcs:ignore } } if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) { @@ -3292,7 +3292,7 @@ function wc_get_stock_html( $product ) { * @return string */ function wc_get_rating_html( $rating, $count = 0 ) { - $html = 0 < $rating ? '
' . wc_get_star_rating_html( $rating, $count ) . '
' : ''; + $html = 0 < $rating ? '' : ''; return apply_filters( 'woocommerce_product_get_rating_html', $html, $rating, $count ); }