December 18th, 2007

Stop Wordpress MU From Blocking Your Code

by John Kolbert as Tutorial/How-To | Tags:

A few days ago John Burton contacted me asking if I knew why he couldn’t get Wordpress MU to show embedded YouTube videos and podcasts that he was working with. To tell the truth, I had no idea, but I agreed to check it out with him. He was quicker then I and found an easy way to fix it .

Turns out Wordpress MU filters the code and disables the embed features. How do you fix it?

Edit wp-include/kses.php. In that file search for “Post filtering” and then comment out the following lines:

    // Post filtering
    //add_filter(’content_save_pre’, ‘wp_filter_post_kses’);

    And that’s all there is too it.

4 Responses to “Stop Wordpress MU From Blocking Your Code”

  1. JiaoLi says:

    I hope WordPress developers replace kses with htmLawed (which is actually developed off kses) and put in place a control panel for setting htmLawed options (tags to filter, etc.). htmLawed seems to be much. much better than kses.

  2. Venturi says:

    Thanks for your good idea, try it.
    my wpmu couldn’t toooo.

Trackbacks/Pingbacks

  1. Skolebloggen » Blog Archive » Embed tag?
  2. MarkTeipe.com » Blog Archive » Brightcove and Youtube embed code in Wordpress MU

Leave a Reply