[wp-trac] [WordPress Trac] #43252: Extra tabs when quick editing a comment

WordPress Trac noreply at wordpress.org
Wed Feb 7 20:55:28 UTC 2018


#43252: Extra tabs when quick editing a comment
------------------------------+-------------------
 Reporter:  SergeyBiryukov    |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  5.0
Component:  Comments          |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-------------------
 When quick editing a comment, there are 4 extra tabs in the textarea: 2
 before the comment content and 2 after.

 Caused by [42343], which changed this:
 {{{
                 <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>
 }}}
 to this:
 {{{
                 <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>
 }}}
 Might be a good idea to review other `<textarea>` instances in core as
 well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43252>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list