Home » Tutorial/How-To

Stop Wordpress MU From Blocking Your Code

Published on December 18, 2007 3 CommentsPrint This Post Print This Post

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:

This article was written by John Kolbert on December 18, 2007 and filed as Tutorial/How-To. Get the latest articles by subscribing to the RSS feed. This article, including images and attachments, is property of John Kolbert and is not to be republished or translated without prior written permission.

Post Toolbox

Share It


Print It

3 Comments »

  • JiaoLi said: 1 January 18, 2008 at 8:50 pm

    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.

  • Venturi said: 2 April 10, 2008 at 12:24 pm

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

Trackbacks

  1. Skolebloggen » Blog Archive » Embed tag?

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Please read the comment policy before commenting.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.