Merge branch 'add/22552'

This commit is contained in:
Mike Jolley 2019-02-01 16:10:21 +00:00
commit b694dffd1c
1 changed files with 3 additions and 3 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">' . get_the_title() . '</h2>'; // 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 ? '<div class="star-rating">' . wc_get_star_rating_html( $rating, $count ) . '</div>' : '';
$html = 0 < $rating ? '<div class="star-rating" aria-hidden="true">' . wc_get_star_rating_html( $rating, $count ) . '</div>' : '';
return apply_filters( 'woocommerce_product_get_rating_html', $html, $rating, $count );
}