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

git-svn-id: https://develop.svn.wordpress.org/trunk@5646 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-06-04 17:43:22 +00:00
parent 7fd0cb8c83
commit 6aa3a65c02

View File

@ -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 );