Skip to content

Commit

Permalink
Avoid stripping out a bunch of content with wp_kses_post() used in th…
Browse files Browse the repository at this point in the history
…e blocks.
  • Loading branch information
brianhogg committed Jul 29, 2024
1 parent ec830b4 commit 000d656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/blocks/class-llms-blocks-php-template-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function output( $attributes = array() ) {
$block_content = apply_filters( 'llms_blocks_render_php_template_block', $block_content, $attributes, $templates[ $attributes['template'] ], $this );

if ( $block_content ) {
echo wp_kses_post( $block_content );
echo wp_kses( $block_content, LLMS_ALLOWED_HTML_FORM_FIELDS );
}
}
}
Expand Down

0 comments on commit 000d656

Please sign in to comment.