Support » Plugin: OptionTree » Inline style removing with iframe tag

  • Resolved fxvisuals

    (@fxvisuals)


    We are facing an issue after upgrading the Version 2.7.0. The Inline style is removing in the iframe tag. We used the simple textarea field. Please see the screenshot for more information – https://hmp.me/ckqn

    Can you please fix it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Derek Herman

    (@valendesigns)

    This can be fixed with a filter. Try this and let me know if it fixes it and I’ll patch the plugin.

    
    add_filter( 'ot_allowed_html', function( $tags ) {
        $tags['noscript'] = array();
    
        return $tags;
    }, 10, 1 );
    
    Plugin Author Derek Herman

    (@valendesigns)

    OptionTree version 2.7.1 fixes both the missing noscript tag and iframe style attribute for users with unfiltered_html capabilities. Version 2.7.1 should be available by the top of the hour. Thank you for finding the issue.

    Thanks for the updating the plugin. We have updated the plugin and still getting same issue for style attribute only. Please see the screenshot for more information – https://hmp.me/ck08

    • This reply was modified 1 year, 6 months ago by fxvisuals.
    Plugin Author Derek Herman

    (@valendesigns)

    The isn’t really as much an OptionTree issue as it is Core not adding display and visibility to the style attributes array in the safe_style_css filter. If you changed the style to something else it works. However, I’ve patched it and I’m deploying another version in a few minutes that I know works. And it will make it easier to extend if someone needs other attributes besides those two and the ones here https://core.trac.wordpress.org/browser/tags/5.1.1/src/wp-includes/kses.php#L2068

    Plugin Author Derek Herman

    (@valendesigns)

    @fxvisuals It should be available for download shortly. Please test it and let me know.

    @derek we have updated the latest plugin and it’s working fine now.
    Thanks for fixing it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Inline style removing with iframe tag’ is closed to new replies.