WordPress Mu by default does not allow ‘embed’ tags in a post. This was done supposedly to mitigate possible security risks of allowing random blog users to embed code into the system.

However, this makes it annoying for admins running multiple WordPress sites with WordPress Mu, as opposed to running a open blog network like WordPress.com.

The following code added to wp-include/kses.php will allow the embed codes to work again:

Insert after the lines:

if (!CUSTOM_TAGS) {
$allowedposttags = array (

‘embed’ => array (
‘style’ => array (),
‘type’ => array (),
‘id’ => array (),
‘height’ => array (),
‘width’ => array (),
‘src’ => array ()),
‘object’ => array (
‘height’ => array (),
‘width’ => array ()),
‘param’ => array (
‘name’ => array (),
‘value’ => array ()),

WordPress MU › WordPress MU Forums » Issue regarding YouTube and Google videos.

Be Sociable, Share!

Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline


Comments ( 1 Comment )

[...] Also note that WordPress mu does not by default allow embedding, yeah, whatever. I would have been nice to know this before i started thinking it was an error with my database, but there is code online to remedy this. (wordpress-mu-embed-code/) [...]

Migrating from Movable Type 3.2 to Wordpress Mu « CICS World added these pithy words on Feb 24 10 at 04:54

Add a Comment


XHTML: 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>

*

Powered by WP Hashcash


© Copyright 2007 KafeKafe . Thanks for visiting!