At around line 742 of kses.php
[source:php]function kses_init_filters() {
// Normal filtering.
add_filter(’pre_comment_content’, ‘wp_filter_kses’);
add_filter(’title_save_pre’, ‘wp_filter_kses’);[/source]
[source:php]// 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’);
}[/source]
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/
This entry was posted on Thursday, January 10th, 2008 at 8:44 am and is filed under 技术::Tech. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



January 26th, 2008 at 4:33 am