Comments: Avoid extra tabs in a textarea in `WP_Comments_List_Table::column_comment()`.
Props chetan200891, jrf. Fixes #43252. git-svn-id: https://develop.svn.wordpress.org/trunk@42670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
05b37069a4
commit
d6bfc44a16
|
@ -685,19 +685,17 @@ if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_us
|
|||
}
|
||||
|
||||
comment_text( $comment );
|
||||
|
||||
if ( $this->user_can ) {
|
||||
/** This filter is documented in wp-admin/includes/comment.php */
|
||||
$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
|
||||
?>
|
||||
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
||||
<textarea class="comment" rows="1" cols="1">
|
||||
<?php
|
||||
/** This filter is documented in wp-admin/includes/comment.php */
|
||||
echo esc_textarea( apply_filters( 'comment_edit_pre', $comment->comment_content ) );
|
||||
?>
|
||||
</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>
|
||||
<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
|
||||
<textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></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>
|
||||
<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue