diff --git a/includes/class-wc-structured-data.php b/includes/class-wc-structured-data.php index 4d6beb859cc..b22f35d424f 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -299,15 +299,16 @@ class WC_Structured_Data { foreach ( $comments as $comment ) { $markup['review'][] = array( '@type' => 'Review', - 'author' => array( - '@type' => 'Person', - 'name' => get_comment_author( $comment->comment_ID ), - ), 'reviewRating' => array( '@type' => 'Rating', 'ratingValue' => get_comment_meta( $comment->comment_ID, 'rating', true ), ), - 'datePublished' => get_comment_date( 'c', $comment->comment_ID ), + 'author' => array( + '@type' => 'Person', + 'name' => get_comment_author( $comment ), + ), + 'reviewBody' => get_comment_text( $comment ), + 'datePublished' => get_comment_date( 'c', $comment ), ); } }