Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix Reviews blocks not being rendered (#11913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored Nov 23, 2023
1 parent e8186b7 commit d66eca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StoreApi/Schemas/V1/ProductReviewSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function get_item_response( $review ) {
'product_permalink' => get_permalink( (int) $review->comment_post_ID ),
'product_image' => $this->image_attachment_schema->get_item_response( get_post_thumbnail_id( (int) $review->comment_post_ID ) ),
'reviewer' => $review->comment_author,
'review' => wp_autop( $review->comment_content ),
'review' => wpautop( $review->comment_content ),
'rating' => $rating,
'verified' => wc_review_is_from_verified_owner( $review->comment_ID ),
'reviewer_avatar_urls' => rest_get_avatar_urls( $review->comment_author_email ),
Expand Down

0 comments on commit d66eca1

Please sign in to comment.