Run comment_text filter before format_to_edit() when getting a comment to edit. fixes #4403 for 2.0

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-06-04 17:49:02 +00:00
parent 87065318f5
commit 757a704cac

View File

@ -322,9 +322,9 @@ function get_comment_to_edit($id) {
$comment->comment_ID = (int) $comment->comment_ID;
$comment->comment_post_ID = (int) $comment->comment_post_ID;
$comment->comment_content = format_to_edit($comment->comment_content, $richedit);
$comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
$comment->comment_content = apply_filters( 'comment_text', $comment->comment_content );
$comment->comment_content = format_to_edit($comment->comment_content);
$comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
$comment->comment_author = format_to_edit($comment->comment_author);
$comment->comment_author_email = format_to_edit($comment->comment_author_email);