Comments: Avoid extra tabs in a textarea in `WP_Comments_List_Table::column_comment()`.
Props chetan200891, jrf. Fixes #43252. Built from https://develop.svn.wordpress.org/trunk@42670 git-svn-id: http://core.svn.wordpress.org/trunk@42498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aaa28bba15
commit
cceab04984
|
@ -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
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42667';
|
||||
$wp_version = '5.0-alpha-42670';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue