From 2e750d7d14da870970dfc17a12da9edff5bb7660 Mon Sep 17 00:00:00 2001 From: farhan-shafi Date: Fri, 12 Jul 2024 20:56:57 +0500 Subject: [PATCH] fix schema error in review block --- readme.txt | 1 + src/blocks/review/block.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 8ad2ae64..0288d000 100644 --- a/readme.txt +++ b/readme.txt @@ -152,6 +152,7 @@ That's it. You're done! = 3.2.1 = +* FIX: Review Block Schema error. * FIX: Content Filter multiple selection not working. * FIX: Content Toggle performance issue. * FIX: Post Excerpt null warning in post grid block. diff --git a/src/blocks/review/block.php b/src/blocks/review/block.php index cb5214e0..67b424ac 100644 --- a/src/blocks/review/block.php +++ b/src/blocks/review/block.php @@ -34,7 +34,7 @@ class="ub_review_percentage_bar_path" } function ub_filterJsonldString($string){ - return str_replace("\'", "'", wp_kses_post($string)); + return str_replace("\'", "'", wp_kses_post(urlencode($string))); } function ub_render_review_block($attributes, $block_content, $block_instance){