diff --git a/templates/single-product-reviews.php b/templates/single-product-reviews.php
index e76c6b7d85f4e..89a8f7c27a39e 100644
--- a/templates/single-product-reviews.php
+++ b/templates/single-product-reviews.php
@@ -27,7 +27,7 @@
echo '
'.$average.' '.__( 'out of 5', 'woocommerce' ).'
';
- echo ''.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), ''.$count.'', wptexturize($post->post_title) ).'
';
+ echo ''.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), ''.$count.'', wptexturize(get_the_title()) ).'
';
echo '';
@@ -66,7 +66,7 @@
else :
- $title_reply = __( 'Be the first to review', 'woocommerce' ).' “'.$post->post_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' ), '', '' ) . '
';