[wp-cvs]
wordpress/wp-includes template-functions-comment.php, 1.32, 1.33
Matthew Mullenweg
saxmatt at users.sourceforge.net
Mon Oct 11 22:07:12 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12965/wp-includes
Modified Files:
template-functions-comment.php
Log Message:
Move balanceTags into filters.
Index: template-functions-comment.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-comment.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** template-functions-comment.php 10 Oct 2004 18:02:29 -0000 1.32
--- template-functions-comment.php 11 Oct 2004 22:07:09 -0000 1.33
***************
*** 12,20 ****
add_filter('comment_text', 'make_clickable');
add_filter('comment_text', 'wpautop', 30);
! add_filter('comment_text', 'balanceTags');
add_filter('comment_text', 'convert_smilies', 20);
add_filter('comment_excerpt', 'convert_chars');
function comments_template() {
global $withcomments, $post, $wpdb, $id, $comment;
--- 12,26 ----
add_filter('comment_text', 'make_clickable');
add_filter('comment_text', 'wpautop', 30);
! 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;
More information about the cvs
mailing list