• Hi

    I had a problem with flash displayed over a fixed bar, so I had a filter to add wmode=transparent. But in your code you echo wp_get_oembed without apply_filters('embed_oembed_html'..., so my filter does not work for the widget.

    I have made this change (line 92, oembed.php)

    // Check if embed URL is entered
    if( isset( $embed_url ) ) {
    echo '<div class="ts-widgets-oembed-content">';
    	// Check if user entered embed width
    	$attr = ( isset( $embed_width ) && $embed_width > 0 )?array( 'width' => $embed_width ):'';
    	$html = wp_oembed_get( $embed_url, $attr );
    	if ( $html ) echo apply_filters( 'embed_oembed_html', $html, $embedurl, $attr, null );
    
    echo '</div><!-- .ts-widgets-oembed-content -->';
    } // end if embed URL

    it’s working

    http://wordpress.org/extend/plugins/ts-widget-pack/

The topic ‘widget TS oembed’ is closed to new replies.