Apply "comment_edit_pre" filter when quick-editing comments, props Viper007Bond, fixes #10858

git-svn-id: http://svn.automattic.com/wordpress/trunk@11975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-09-26 22:28:22 +00:00
parent ba74883676
commit 0630337d8e
1 changed files with 1 additions and 1 deletions

View File

@ -2141,7 +2141,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
comment_text();
if ( $user_can ) { ?>
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
<textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars($comment->comment_content, ENT_QUOTES); ?></textarea>
<textarea class="comment" rows="1" cols="1"><?php echo apply_filters( 'comment_edit_pre', htmlspecialchars($comment->comment_content, ENT_QUOTES) ); ?></textarea>
<div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
<div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
<div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>