From 4eec1f895ab6e9c317afde05933b75405914ec72 Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 27 Jul 2022 17:34:16 +0300 Subject: [PATCH] FIX: Event Map and Video are not displayed --- .../shortcodes/class-sp-shortcode-event-full.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/includes/shortcodes/class-sp-shortcode-event-full.php b/includes/shortcodes/class-sp-shortcode-event-full.php index 436d9d1d..f3f56a02 100644 --- a/includes/shortcodes/class-sp-shortcode-event-full.php +++ b/includes/shortcodes/class-sp-shortcode-event-full.php @@ -148,7 +148,21 @@ class SP_Shortcode_Event_Full { $ob .= ''; } - echo wp_kses_post( $ob ); + // Add all the native allowed html tags + $allowed_html = wp_kses_allowed_html( 'post' ); + // Include script as allowed tag + $allowed_html['script'] = array(); + // Include iframe as allowed tag + $allowed_html['iframe'] = array( + 'src' => array(), + 'height' => array(), + 'width' => array(), + 'allow' => array(), + 'title' => array(), + 'frameborder' => array(), + 'allowfullscreen' => array(), + ); + echo wp_kses( $ob, $allowed_html ); } }