Move balanceTags into filters.

git-svn-id: https://develop.svn.wordpress.org/trunk@1781 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-10-11 22:07:09 +00:00
parent 7207eb61ee
commit 236c6ede65
3 changed files with 12 additions and 8 deletions
+7 -1
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;