Skip to content

Commit

Permalink
fix schema error in review block
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-shafi committed Jul 12, 2024
1 parent 7dda994 commit 2e750d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/review/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 2e750d7

Please sign in to comment.