diff --git a/includes/class-wc-comments.php b/includes/class-wc-comments.php index 31d20f9f588..264e8d837e2 100644 --- a/includes/class-wc-comments.php +++ b/includes/class-wc-comments.php @@ -130,7 +130,7 @@ class WC_Comments { add_comment_meta( $comment_id, 'rating', (int) esc_attr( $_POST['rating'] ), true ); - woocommerce_clear_comment_rating_transients( $comment_id ); + $this->clear_transients( $comment_id ); } } diff --git a/templates/single-product-reviews.php b/templates/single-product-reviews.php index 89a8f7c27a3..2172a46cce8 100644 --- a/templates/single-product-reviews.php +++ b/templates/single-product-reviews.php @@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly echo '
'.$average.' '.__( 'out of 5', 'woocommerce' ).'
'; - echo '

'.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), ''.$count.'', wptexturize(get_the_title()) ).'

'; + echo '

'.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), ''.$count.'', get_the_title() ).'

'; echo ''; @@ -66,7 +66,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly else : - $title_reply = __( 'Be the first to review', 'woocommerce' ).' “'.get_the_title().'”'; + $title_reply = __( 'Be the first to review', 'woocommerce' ).' “' . get_the_title() . '”'; echo '

' . sprintf( __( 'There are no reviews yet, would you like to %s submit yours%s?', 'woocommerce' ), '', '' ) . '

';