<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Remove Crazy WordPress MU HTML Filter</title>
	<atom:link href="http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/</link>
	<description>Freebies for SEO, Web design, computers, blogging</description>
	<lastBuildDate>Wed, 25 May 2011 10:25:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: leomartin6</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-7095</link>
		<dc:creator>leomartin6</dc:creator>
		<pubDate>Wed, 19 May 2010 06:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-7095</guid>
		<description>This solves the problem but I really hate hacking the core since with every update we&#039;ll have to re-edit the file. Did you ever get around to releasing that plugin? I tried to create a plugin based on Otto&#039;s code but I couldn&#039;t get it to work - but my plugin creation ability is not where I&#039;d like it to be.
---------------------------
Leo
&lt;a href=&quot;http://www.cwnaexam.net&quot; rel=&quot;nofollow&quot;&gt;cwna&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This solves the problem but I really hate hacking the core since with every update we'll have to re-edit the file. Did you ever get around to releasing that plugin? I tried to create a plugin based on Otto's code but I couldn't get it to work - but my plugin creation ability is not where I'd like it to be.<br />
---------------------------<br />
Leo<br />
<a href="http://www.cwnaexam.net" rel="nofollow">cwna</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-6140</link>
		<dc:creator>B</dc:creator>
		<pubDate>Thu, 25 Feb 2010 21:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-6140</guid>
		<description>After three hours of searching I found this! LIFE SAVER!!!

Thanks</description>
		<content:encoded><![CDATA[<p>After three hours of searching I found this! LIFE SAVER!!!</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hikari</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-6102</link>
		<dc:creator>Hikari</dc:creator>
		<pubDate>Mon, 11 Jan 2010 13:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-6102</guid>
		<description>Hello. IDK if it&#039;s the same for WP MU, but in WP, the damned function that strips our text is &lt;code&gt;wp_filter_kses()&lt;/code&gt;.

&lt;code&gt;kses_init_filters()&lt;/code&gt; adds it as filter to 5 hooks, &lt;code&gt;kses_init()&lt;/code&gt; calls this function, and it is added as action to &lt;code&gt;init&lt;/code&gt; and &lt;code&gt;set_current_user&lt;/code&gt;. All those functions are in kses.php

Note the &lt;code&gt;current_user_can(&#039;unfiltered_html&#039;)&lt;/code&gt;. That&#039;s the trick, &lt;code&gt;kses_init()&lt;/code&gt; removes the filter from all hooks and adds it back if user can&#039;t use clean HTML.

So, instead of hacking Wordpress core or using codes to remove the filter, just set &lt;code&gt;unfiltered_html&lt;/code&gt; role to uses that should have it, and Wordpress core will do it&#039;s job nicefully without having to be hacked :D</description>
		<content:encoded><![CDATA[<p>Hello. IDK if it's the same for WP MU, but in WP, the damned function that strips our text is <code>wp_filter_kses()</code>.</p>
<p><code>kses_init_filters()</code> adds it as filter to 5 hooks, <code>kses_init()</code> calls this function, and it is added as action to <code>init</code> and <code>set_current_user</code>. All those functions are in kses.php</p>
<p>Note the <code>current_user_can('unfiltered_html')</code>. That's the trick, <code>kses_init()</code> removes the filter from all hooks and adds it back if user can't use clean HTML.</p>
<p>So, instead of hacking WordPress core or using codes to remove the filter, just set <code>unfiltered_html</code> role to uses that should have it, and WordPress core will do it's job nicefully without having to be hacked <img src='http://www.binh.name/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supun Budhajeewa</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5821</link>
		<dc:creator>Supun Budhajeewa</dc:creator>
		<pubDate>Mon, 24 Aug 2009 12:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5821</guid>
		<description>Thanks for the tip ! That solved my problem.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip ! That solved my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJTwittr</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5762</link>
		<dc:creator>DJTwittr</dc:creator>
		<pubDate>Mon, 10 Aug 2009 22:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5762</guid>
		<description>Hello, thanks for this tutorial. It has beendriving me crazy I was thinking a plugin blew up my html. But I would like to add that as of the 2.8.3 fork of WPMU the line number is now  #1098</description>
		<content:encoded><![CDATA[<p>Hello, thanks for this tutorial. It has beendriving me crazy I was thinking a plugin blew up my html. But I would like to add that as of the 2.8.3 fork of WPMU the line number is now  #1098</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5742</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 30 Jul 2009 17:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5742</guid>
		<description>Great info!  I&#039;ve been searching for a way to insert javascript and php into MU posts for hours.  Thanks to you I&#039;m finally achieving what I wanted to accomplish.</description>
		<content:encoded><![CDATA[<p>Great info!  I've been searching for a way to insert javascript and php into MU posts for hours.  Thanks to you I'm finally achieving what I wanted to accomplish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billi</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5710</link>
		<dc:creator>Billi</dc:creator>
		<pubDate>Thu, 23 Jul 2009 20:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5710</guid>
		<description>I was hoping I could modify this plugin to activate HTML in WordPress MU Bios (on profile pages). But, no dice.

However, this plugin somehow worked for getting HTML into the bios:

http://www.ternstyle.us/products/plugins/wordpress/wordpress-rich-text-biography

It takes an interesting approach...</description>
		<content:encoded><![CDATA[<p>I was hoping I could modify this plugin to activate HTML in WordPress MU Bios (on profile pages). But, no dice.</p>
<p>However, this plugin somehow worked for getting HTML into the bios:</p>
<p><a href="http://www.ternstyle.us/products/plugins/wordpress/wordpress-rich-text-biography" rel="nofollow">http://www.ternstyle.us/products/plugins/wordpress/wordpress-rich-text-biography</a></p>
<p>It takes an interesting approach...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binh Nguyen</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5422</link>
		<dc:creator>Binh Nguyen</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5422</guid>
		<description>@Jacob, thanks for appreciating. I did make a plugin to unhook it. Didn&#039;t actually put on Wordpress  plugins directory because no time :) But my plugin is suggested having a misspelled word and I didn&#039;t even fixed it yet :)) so lazy I am.</description>
		<content:encoded><![CDATA[<p>@Jacob, thanks for appreciating. I did make a plugin to unhook it. Didn't actually put on WordPress  plugins directory because no time <img src='http://www.binh.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But my plugin is suggested having a misspelled word and I didn't even fixed it yet <img src='http://www.binh.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) so lazy I am.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5414</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Tue, 23 Jun 2009 19:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5414</guid>
		<description>I love you! Been trying to write a plugin to unhook this for 2 days now.. This way is MUCH easier!

I hope WP admin in future has an option to turn ON/OFF this !

Cheers,
Jacob</description>
		<content:encoded><![CDATA[<p>I love you! Been trying to write a plugin to unhook this for 2 days now.. This way is MUCH easier!</p>
<p>I hope WP admin in future has an option to turn ON/OFF this !</p>
<p>Cheers,<br />
Jacob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binh Nguyen</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5086</link>
		<dc:creator>Binh Nguyen</dc:creator>
		<pubDate>Sat, 04 Apr 2009 23:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5086</guid>
		<description>I made the plugin, here is the link to the download page: &lt;a href=&quot;http://www.binh.name/2009/04/05/less-filter-plugin-for-wordpress/&quot; rel=&quot;nofollow&quot;&gt;Less Filter Plugin for Wordpress&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I made the plugin, here is the link to the download page: <a href="http://www.binh.name/2009/04/05/less-filter-plugin-for-wordpress/" rel="nofollow">Less Filter Plugin for WordPress</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blok</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5080</link>
		<dc:creator>Blok</dc:creator>
		<pubDate>Tue, 31 Mar 2009 17:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5080</guid>
		<description>This solves the problem but I really hate hacking the core since with every update we&#039;ll have to re-edit the file. Did you ever get around to releasing that plugin? I tried to create a plugin based on Otto&#039;s code but I couldn&#039;t get it to work - but my plugin creation ability is not where I&#039;d like it to be.

Thanks!</description>
		<content:encoded><![CDATA[<p>This solves the problem but I really hate hacking the core since with every update we'll have to re-edit the file. Did you ever get around to releasing that plugin? I tried to create a plugin based on Otto's code but I couldn't get it to work - but my plugin creation ability is not where I'd like it to be.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binh Nguyen</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5077</link>
		<dc:creator>Binh Nguyen</dc:creator>
		<pubDate>Mon, 30 Mar 2009 17:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5077</guid>
		<description>You may want to try &lt;a href=&quot;http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/&quot; rel=&quot;nofollow&quot;&gt;Wordpress PHP Exec Plugin&lt;/a&gt; for that purpose.</description>
		<content:encoded><![CDATA[<p>You may want to try <a href="http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/" rel="nofollow">WordPress PHP Exec Plugin</a> for that purpose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-5076</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Sun, 29 Mar 2009 13:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-5076</guid>
		<description>Hi,

is there any possibility to make php running in Wpmu?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>is there any possibility to make php running in Wpmu?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remove WordPress MU HTML Filter - Administration Office</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-4920</link>
		<dc:creator>Remove WordPress MU HTML Filter - Administration Office</dc:creator>
		<pubDate>Thu, 22 Jan 2009 01:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-4920</guid>
		<description>[...] from Binh.name  :Filter, Html, WordPress Mu    No comments for this entry [...]</description>
		<content:encoded><![CDATA[<p>[...] from Binh.name  :Filter, Html, WordPress Mu    No comments for this entry [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spedman975</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-4740</link>
		<dc:creator>Spedman975</dc:creator>
		<pubDate>Tue, 02 Dec 2008 01:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-4740</guid>
		<description>Thank GOD for you! I have been trying to figure that out for AGES... So happy now...</description>
		<content:encoded><![CDATA[<p>Thank GOD for you! I have been trying to figure that out for AGES... So happy now...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Html Metatags</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-4718</link>
		<dc:creator>Html Metatags</dc:creator>
		<pubDate>Mon, 24 Nov 2008 14:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-4718</guid>
		<description>Wow - hot! Just what I was looking for ;-)
Thanks!</description>
		<content:encoded><![CDATA[<p>Wow - hot! Just what I was looking for <img src='http://www.binh.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unfilter MU&#8217;s Filters &#124; Page 2</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-4145</link>
		<dc:creator>Unfilter MU&#8217;s Filters &#124; Page 2</dc:creator>
		<pubDate>Wed, 08 Oct 2008 04:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-4145</guid>
		<description>[...] and Flash embeds. This would be fine if it were configurable, but sadly it is not. Various hacks exist to remedy the situation, but for such a pluggable piece of software as WordPress - hacks just [...]</description>
		<content:encoded><![CDATA[<p>[...] and Flash embeds. This would be fine if it were configurable, but sadly it is not. Various hacks exist to remedy the situation, but for such a pluggable piece of software as WordPress - hacks just [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-1819</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 22 Aug 2008 05:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-1819</guid>
		<description>Thanks so much for this. I was pulling my hair out trying to get it to work.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this. I was pulling my hair out trying to get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kedmond</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-1793</link>
		<dc:creator>kedmond</dc:creator>
		<pubDate>Wed, 13 Aug 2008 17:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-1793</guid>
		<description>You&#039;re awesome.  I finally got this to work.  I followed this procedure:

   1.  Open file wp-includes/kse.php in your WordPress MU folder
   2. Locate line 717 to find: add_filter(&#039;content_save_pre&#039;, &#039;wp_filter_post_kses&#039;);
   3. insert # before add_filter and you should have this: #add_filter(&#039;content_save_pre&#039;, &#039;wp_filter_post_kses&#039;);


However, in the current WP MU distribution, version 2.6, the line that you must edit in kses.php is Line 1021.  But the command that you have to comment out is the very same as before.  Thanks again!</description>
		<content:encoded><![CDATA[<p>You're awesome.  I finally got this to work.  I followed this procedure:</p>
<p>   1.  Open file wp-includes/kse.php in your WordPress MU folder<br />
   2. Locate line 717 to find: add_filter('content_save_pre', 'wp_filter_post_kses');<br />
   3. insert # before add_filter and you should have this: #add_filter('content_save_pre', 'wp_filter_post_kses');</p>
<p>However, in the current WP MU distribution, version 2.6, the line that you must edit in kses.php is Line 1021.  But the command that you have to comment out is the very same as before.  Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binh Nguyen</title>
		<link>http://www.binh.name/how-to-remove-crazy-wordpress-mu-html-filter/comment-page-1/#comment-1701</link>
		<dc:creator>Binh Nguyen</dc:creator>
		<pubDate>Fri, 20 Jun 2008 18:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.binh.name/2007/12/22/how-to-remove-crazy-wordpress-mu-html-filter/#comment-1701</guid>
		<description>@dennis: Thanks for reminding me of releasing this plugin.</description>
		<content:encoded><![CDATA[<p>@dennis: Thanks for reminding me of releasing this plugin.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 4.734 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-10 11:50:27 -->
<!-- Compression = gzip -->
