get rid of html/javascript filter on the post

At around line 742 of kses.php

function kses_init_filters() {
// Normal filtering.
add_filter(’pre_comment_content’, ‘wp_filter_kses’);
add_filter(’title_save_pre’, ‘wp_filter_kses’);

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

Then your post won’t be filtered out, but only your comments.

Credits to http://dev.robertmao.com/2007/07/18/get-rid-of-boring-wpmus-post-htmljavascript-filtering/

Rating: 7.0/10 (9 votes cast)

Related posts:

  1. Publish blog via email Now I am using my google account to send email...

One Response to “get rid of html/javascript filter on the post”

  1. 1
    Paul Stephensen Says:
    January 26th, 2008 at 4:33 am

    Hi there thanks this was a life saver.

    Rating: 0.0/5 (0 votes cast)

Leave a Reply

Preview:

Tags:
Separate individual tags by commas