From 4fe7af91e203612b89838b5e48aac052169d70ab Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Mon, 1 Dec 2014 09:00:55 -0500 Subject: [PATCH] Update filters, now runs shortcodes in dialog content --- inc/api.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(){