Skip to content

Commit 612e761

Browse files
authored
fix (posts block): use wp_kses_post instead of esc_html to allow dynamic content (#3620)
1 parent 578783c commit 612e761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block/posts/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function generate_render_item_from_stackable_posts_block( $post, $attributes, $t
132132

133133
// Read More Link.
134134
if ( strpos( $new_template, '!#readmoreText!#' ) !== false ) {
135-
$new_template = str_replace( '!#readmoreText!#', esc_html( $readmore_text ), $new_template );
135+
$new_template = str_replace( '!#readmoreText!#', wp_kses_post( $readmore_text ), $new_template );
136136
}
137137

138138
return $new_template;

0 commit comments

Comments
 (0)