diff --git a/inc/api.php b/inc/api.php index 36a40ac..afbe4ec 100644 --- a/inc/api.php +++ b/inc/api.php @@ -69,6 +69,11 @@ function cwv3_get_js_dialog(){ $exit_url = get_option( 'cwv3_exit_link', '#' ); $enter_url = get_option( 'cwv3_enter_link', '#' ); + // Was going to use apply_filters the_content but didn't want other + // extra filters here, so we run them 1 by 1 instead + $cwv3_message = do_shortcode( wpautop( wp_kses_post( $cwv3_message ) ) ); + $cwv3_denial_message = do_shortcode( wpautop( wp_kses_post( $cwv3_denial_message ) ) ); + ob_start(); ?> @@ -76,7 +81,7 @@ function cwv3_get_js_dialog(){