diff --git a/packages/block-library/src/post-terms/index.php b/packages/block-library/src/post-terms/index.php index 3e7a05f10117e4..8247e00de2007f 100644 --- a/packages/block-library/src/post-terms/index.php +++ b/packages/block-library/src/post-terms/index.php @@ -49,9 +49,9 @@ function render_block_core_post_terms( $attributes, $content, $block ) { $post_terms = get_the_term_list( $block->context['postId'], $attributes['term'], - wp_kses_post( $prefix ), + $prefix, '' . esc_html( $separator ) . '', - wp_kses_post( $suffix ) + $suffix ); if ( is_wp_error( $post_terms ) || empty( $post_terms ) ) {