From e515401912bbe26e0dfeccb89ac3b0fb5e370d9e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 4 Jun 2007 17:43:22 +0000 Subject: [PATCH] Run comment_text filter before format_to_edit() when getting a comment to edit. fixes #4403 for 2.3 git-svn-id: http://svn.automattic.com/wordpress/trunk@5646 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index 5f55f7aade..92451a8fa8 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -46,9 +46,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, user_can_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 );