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

Commit 6366dc3

Browse files
Aljulluwavvves
authored andcommitted
Fix Reviews blocks not being rendered (#11913)
1 parent 349f0e6 commit 6366dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StoreApi/Schemas/V1/ProductReviewSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function get_item_response( $review ) {
170170
'product_permalink' => get_permalink( (int) $review->comment_post_ID ),
171171
'product_image' => $this->image_attachment_schema->get_item_response( get_post_thumbnail_id( (int) $review->comment_post_ID ) ),
172172
'reviewer' => $review->comment_author,
173-
'review' => wp_autop( $review->comment_content ),
173+
'review' => wpautop( $review->comment_content ),
174174
'rating' => $rating,
175175
'verified' => wc_review_is_from_verified_owner( $review->comment_ID ),
176176
'reviewer_avatar_urls' => rest_get_avatar_urls( $review->comment_author_email ),

0 commit comments

Comments
 (0)