Make WordPress Core

Changeset 42670


Ignore:
Timestamp:
02/08/2018 10:56:55 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Comments: Avoid extra tabs in a textarea in WP_Comments_List_Table::column_comment().

Props chetan200891, jrf.
Fixes #43252.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r42420 r42670  
    686686
    687687        comment_text( $comment );
     688
    688689        if ( $this->user_can ) {
     690            /** This filter is documented in wp-admin/includes/comment.php */
     691            $comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
    689692        ?>
    690693        <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    691         <textarea class="comment" rows="1" cols="1">
    692         <?php
    693             /** This filter is documented in wp-admin/includes/comment.php */
    694             echo esc_textarea( apply_filters( 'comment_edit_pre', $comment->comment_content ) );
    695         ?>
    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>
     694            <textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></textarea>
     695            <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
     696            <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
     697            <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
     698            <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    701699        </div>
    702700        <?php
Note: See TracChangeset for help on using the changeset viewer.