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 '
'; - echo '' . sprintf( __( 'There are no reviews yet, would you like to %s submit yours%s?', 'woocommerce' ), '', '' ) . '
';