mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
Apply "comment_edit_pre" filter when quick-editing comments, props Viper007Bond, fixes #10858
git-svn-id: https://develop.svn.wordpress.org/trunk@11975 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4571d4a60
commit
b2d6dc7e66
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user