WordPress.org

Make WordPress Core

Ticket #43252: 43252.2.diff

File 43252.2.diff, 1.2 KB (added by chetan200891, 2 years ago)
  • src/wp-admin/includes/class-wp-comments-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
    index e64086d..e73d12b 100644
    a b if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_us 
    688688                if ( $this->user_can ) {
    689689                ?>
    690690                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    691                 <textarea class="comment" rows="1" cols="1">
    692691                <?php
    693                         /** This filter is documented in wp-admin/includes/comment.php */
    694                         echo esc_textarea( apply_filters( 'comment_edit_pre', $comment->comment_content ) );
     692                /** This filter is documented in wp-admin/includes/comment.php */
     693                $filtered_comment = apply_filters( 'comment_edit_pre', $comment->comment_content );
    695694                ?>
    696                 </textarea>
     695
     696                <textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $filtered_comment ); ?></textarea>
    697697                <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
    698698                <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
    699699                <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>