Retrive reviewers avatar using the email

Using the email will fix the wrong avatar issue occurring while creating manually the review from the admin panel.
This commit is contained in:
Nicola Mustone 2014-12-08 12:07:22 +01:00
parent 2874ef9947
commit 7aeb9d27bb
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ $rating = intval( get_comment_meta( $comment->comment_ID, 'rating', true ) );
<div id="comment-<?php comment_ID(); ?>" class="comment_container">
<?php echo get_avatar( $comment, apply_filters( 'woocommerce_review_gravatar_size', '60' ), '', get_comment_author() ); ?>
<?php echo get_avatar( $comment, apply_filters( 'woocommerce_review_gravatar_size', '60' ), '', get_comment_author_email( $comment->comment_ID ) ); ?>
<div class="comment-text">