WordPress MU and the mysterious disappearing code
As I was in the middle of developing a WordPress MU site for a client of mine, I ran into a very peculiar problem. After importing their blog posts from their old site, I realized there were a few blog posts with embedded Youtube videos that no longer showed the videos. I checked and check again but could not figure out what happened to the embed code. I then decided it was a fluke, found the videos on Youtube again and copy / pasted. When I pushed “Update” the code disappeared. Totally baffled, I thought maybe I did not install WPMU properly. On my initial install I ran into another strange problem with the WYSIWYG visual editor and a reinstall fixed that. So, I spent another 30 minutes reinstalling WPMU.
No luck.
Now frustrated, I started Googling. I came across several forum posts, one of which lead me to a solution. Several people commented on this Embed code disappears (for some users) in Wordpress 2.7 string, having the same, or very similar issue as me. After reading that and several other confirming posts, I found out that WPMU does not allow any additional tags such as <embed>, <iframe>, <form>, etc. WPMU automatically strips posts of these and rightfully so. When you have a large site with multiple users there can be added security issues, especially if a site will allow anyone to sign up. WPMU strips the code as a security measure.
Okay, now for the solution. Because my client will only have very trustworthy administrators, I am utilizing the Unfiltered MU plugin to allow the additional code.
Hopefully I just saved some people a few hours by posting this! Good luck.
7 Responses to “WordPress MU and the mysterious disappearing code”
-
-
You saved me a ton of time & frustration. Thanks so much!
-
Dude, YOU ROCK!!! You saved me hours! Besides the 2 I already spent! Thank you so much!
-
Thank you very much. You saved me hours of headache.

Thank you so much! Just when I think I’m over my head, I find a clear and helpful post to overcome the next hurdle.