From 816b3b3251b2cb4457cabe38a83cd0c59d9458af Mon Sep 17 00:00:00 2001 From: Yaku <15178758+jacoswan@users.noreply.github.com> Date: Fri, 14 Feb 2020 10:18:37 +0200 Subject: [PATCH] Added missing schema markup Second attempt, fixed spacing of previous added values --- includes/class-wc-structured-data.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-structured-data.php b/includes/class-wc-structured-data.php index 9818e1d536f..6944bf13ef4 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -304,10 +304,10 @@ class WC_Structured_Data { $markup['review'][] = array( '@type' => 'Review', 'reviewRating' => array( - '@type' => 'Rating', - 'bestRating' => '5', - 'ratingValue' => get_comment_meta( $comment->comment_ID, 'rating', true ), - 'worstRating' => '1', + '@type' => 'Rating', + 'bestRating' => '5', + 'ratingValue' => get_comment_meta( $comment->comment_ID, 'rating', true ), + 'worstRating' => '1', ), 'author' => array( '@type' => 'Person',