From c500160d12eb4dbde54a7f1730af8096bf5b195e Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 14:48:22 +0800 Subject: [PATCH] woocommerce 3.6.1 template changes --- woocommerce/single-product/rating.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/woocommerce/single-product/rating.php b/woocommerce/single-product/rating.php index 297111a..b1be13d 100644 --- a/woocommerce/single-product/rating.php +++ b/woocommerce/single-product/rating.php @@ -11,18 +11,17 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates - * @version 3.1.0 + * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } global $product; -if ( 'no' === get_option( 'woocommerce_enable_review_rating' ) ) { +if ( ! wc_review_ratings_enabled() ) { return; } @@ -33,8 +32,12 @@ $average = $product->get_average_rating(); if ( $rating_count > 0 ) : ?>
- - (' . esc_html( $review_count ) . '' ); ?>) + + + + (' . esc_html( $review_count ) . '' ); ?>) + +