Make WordPress Core

Ticket #43252: 43252.3.diff

File 43252.3.diff, 1.7 KB (added by chetan200891, 7 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..449f0fb 100644
    a b if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_us 
    686686
    687687                comment_text( $comment );
    688688                if ( $this->user_can ) {
    689                 ?>
    690                 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    691                 <textarea class="comment" rows="1" cols="1">
    692                 <?php
    693689                        /** This filter is documented in wp-admin/includes/comment.php */
    694                         echo esc_textarea( apply_filters( 'comment_edit_pre', $comment->comment_content ) );
     690                        $filtered_comment = apply_filters( 'comment_edit_pre', $comment->comment_content );
    695691                ?>
    696                 </textarea>
    697                 <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
    698                 <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
    699                 <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
    700                 <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
     692                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
     693                        <textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $filtered_comment ); ?></textarea>
     694                        <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
     695                        <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
     696                        <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
     697                        <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    701698                </div>
    702699                <?php
    703700                }