From 801e3e256ba1bec9140d8e11e1a0e2eeea49854b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 27 Jun 2019 12:50:24 -0400 Subject: [PATCH] Allow iframe in posts Iframe now allowed --- functions.php | 14 ++++++++++++++ style.css | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 2ae77a0..96f8636 100644 --- a/functions.php +++ b/functions.php @@ -152,4 +152,18 @@ function is_post_type($type){ add_action('thematic_searchloop', 'mytheme_search_loop'); // End of the Contextual/Highlight Search functions +add_filter( + 'wp_kses_allowed_html', + function ( $allowedposttags) { + $allowedposttags['iframe'] = array( + 'src' => true, + 'height' => true, + 'width' => true, + 'allowfullscreen' => true, + 'allow' => true, + 'frameborder' => true, + ); + return $allowedposttags; + }, 1 +); ?> diff --git a/style.css b/style.css index 46017ce..00aef0e 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: GreatLakesCenterfortheArts Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for GreatLakesCenterfortheArts -Version: 1.0.46 +Version: 1.0.47 */ -- 2.17.1