From: Steve Sutton Date: Thu, 27 Jun 2019 16:50:24 +0000 (-0400) Subject: Allow iframe in posts X-Git-Tag: v1.0.47^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=801e3e256ba1bec9140d8e11e1a0e2eeea49854b;p=WP-Themes%2Fgreatlakescfa.git Allow iframe in posts Iframe now allowed --- 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 */