Move balanceTags into filters.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-10-11 22:07:09 +00:00
parent 55d5e9f47a
commit f285ca5c55
3 changed files with 12 additions and 8 deletions

View File

@@ -11,11 +11,17 @@ add_filter('comment_url', 'clean_url');
add_filter('comment_text', 'convert_chars');
add_filter('comment_text', 'make_clickable');
add_filter('comment_text', 'wpautop', 30);
add_filter('comment_text', 'balanceTags');
add_filter('comment_text', 'balanceTags', 50);
add_filter('comment_text', 'convert_smilies', 20);
add_filter('comment_excerpt', 'convert_chars');
// Places to balance tags on input
add_filter('post_comment_text', 'balanceTags', 50);
add_filter('content_save_pre', 'balanceTags', 50);
add_filter('excerpt_save_pre', 'balanceTags', 50);
add_filter('comment_save_pre', 'balanceTags', 50);
function comments_template() {
global $withcomments, $post, $wpdb, $id, $comment;