diff --git a/includes/ot-functions-admin.php b/includes/ot-functions-admin.php index 64fc0d1..febf17d 100755 --- a/includes/ot-functions-admin.php +++ b/includes/ot-functions-admin.php @@ -568,7 +568,7 @@ function ot_validate_setting( $input, $type, $field_id, $wmpl_id = '' ) { if ( current_user_can( 'unfiltered_html' ) || true === OT_ALLOW_UNFILTERED_HTML ) { $tags['script'] = array_fill_keys( array( 'async', 'charset', 'defer', 'src', 'type' ), 1 ); $tags['style'] = array_fill_keys( array( 'media', 'type' ), 1 ); - $tags['iframe'] = array_fill_keys( array( 'align', 'frameborder', 'height', 'longdesc', 'marginheight', 'marginwidth', 'name', 'sandbox', 'scrolling', 'src', 'srcdoc', 'width' ), 1 ); + $tags['iframe'] = array_fill_keys( array( 'align', 'frameborder', 'height', 'longdesc', 'marginheight', 'marginwidth', 'name', 'sandbox', 'scrolling', 'src', 'srcdoc', 'style', 'width' ), 1 ); $tags['noscript'] = array(); $tags = apply_filters( 'ot_allowed_html', $tags ); diff --git a/readme.md b/readme.md index ca75cc7..3f8279d 100644 --- a/readme.md +++ b/readme.md @@ -127,6 +127,7 @@ The most likely scenario is your theme already has OptionTree installed in Theme ### 2.7.1 ### * Hotfix - Fix error cannot redeclare `_sanitize_recursive()`. props @shramee +* Hotfix - Ensure `iframe` supports the `style` attribute for users with `unfiltered_html` capabilities. * Hotfix - Ensure `noscript` is supported for users with `unfiltered_html` capabilities. ### 2.7.0 ### diff --git a/readme.txt b/readme.txt index 0e94773..546184c 100755 --- a/readme.txt +++ b/readme.txt @@ -128,6 +128,7 @@ The most likely scenario is your theme already has OptionTree installed in Theme = 2.7.1 = * Hotfix - Fix error cannot redeclare `_sanitize_recursive()`. props @shramee +* Hotfix - Ensure `iframe` supports the `style` attribute for users with `unfiltered_html` capabilities. * Hotfix - Ensure `noscript` is supported for users with `unfiltered_html` capabilities. = 2.7.0 =