WordPress.org

Make WordPress Core

Ticket #34133: 34133_filter_text.2.diff

File 34133_filter_text.2.diff, 561 bytes (added by rachelbaker, 4 years ago)

Passing the entire WP_Comment object to the comment_text function

  • src/wp-admin/comment.php

     
    212212<tr>
    213213<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
    214214<td>
    215         <?php echo $comment->comment_content; ?>
     215        <?php comment_text( $comment ); ?>
    216216        <p><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_attr_e( 'Edit' ); ?></a></p>
    217217</td>
    218218</tr>