FIX: Event Map and Video are not displayed

This commit is contained in:
savvasha
2022-07-27 17:34:16 +03:00
parent 414011c892
commit 4eec1f895a

View File

@@ -148,7 +148,21 @@ class SP_Shortcode_Event_Full {
$ob .= '</div>';
}
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 );
}
}