@hpatoio – thanks for finally pointing out a solution that worked. I’ve been struggling with this strange IE thing for a while now.
I am trying to write a filter to automate the removal and I have it somewhat working. The problem is that every time I make the switch from HTML to visual editor, it adds that classid line back in.
So I may be a bit redundant with some of the filters/actions I added this to, but I needed to make sure it works with excerpts, content, etc. Any ideas if I can eliminate some of the add_filter or add_action lines at the end? Or does it even matter and I can just keep them all?
add the following to your functions.php and it seems to work:
function clean_youtube ($content) {
$content = preg_replace ('/classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"/', '', $content);
return $content;
};
add_filter('the_content', 'clean_youtube');
add_filter('the_content_rss', 'clean_youtube');
add_filter('the_excerpt', 'clean_youtube');
add_filter('the_excerpt_rss', 'clean_youtube');
add_filter('get_the_excerpt', 'clean_youtube');
add_filter('content_edit_pre', 'clean_youtube');
add_filter('content_save_pre', 'clean_youtube');
add_filter('content_filtered_save_pre', 'clean_youtube');
add_action('publish_post', 'clean_youtube');
add_action('save_post', 'clean_youtube');
add_action('edit_post', 'clean_youtube');