WordPress.org

WordPress build repository browser

Changeset 42498


Ignore:
Timestamp:
02/08/18 10:57:32 (2 weeks ago)
Author:
SergeyBiryukov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

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

    r42251 r42498  
    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 
  • trunk/wp-includes/version.php

    r42495 r42498  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42667'; 
     7$wp_version = '5.0-alpha-42670'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.