Skip to content

Commit

Permalink
Support style attribute for iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed May 16, 2019
1 parent 2cf1e14 commit f2ced1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ot-functions-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit f2ced1a

Please sign in to comment.