From ec830b4ceaf7f7f72a375285a207a0fe4d75a2e9 Mon Sep 17 00:00:00 2001 From: Brian Hogg Date: Wed, 24 Jul 2024 11:51:47 -0400 Subject: [PATCH] Avoid stripping out the form html from the enroll form shown to logged in users. --- includes/blocks/class-llms-blocks-pricing-table-block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/blocks/class-llms-blocks-pricing-table-block.php b/includes/blocks/class-llms-blocks-pricing-table-block.php index be02caa..572f4fd 100644 --- a/includes/blocks/class-llms-blocks-pricing-table-block.php +++ b/includes/blocks/class-llms-blocks-pricing-table-block.php @@ -119,7 +119,7 @@ public function output( $attributes = array() ) { remove_filter( 'llms_product_is_purchasable', '__return_true' ); if ( $block_content ) { - echo wp_kses_post( $block_content ); + echo wp_kses( $block_content, LLMS_ALLOWED_HTML_FORM_FIELDS ); } } }