WordPress.org

Make WordPress Core

Ticket #23988: 23988-edit-comment-2.diff

File 23988-edit-comment-2.diff, 1.2 KB (added by Thaicloud, 8 years ago)

Move response/reply info to status meta box

  • wp-admin/edit-form-comment.php

     
    107107<span id="timestamp"><?php printf($stamp, $date); ?></span>&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a>
    108108<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div>
    109109</div>
     110
     111<div class="misc-pub-section misc-pub-response-to">
     112        <?php
     113        $permalink = get_permalink( $comment->comment_post_ID );
     114        if ( ! empty( $permalink ) ) {
     115                _e( 'In response to' ); ?>:
     116                <a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html( get_the_title( $comment->comment_post_ID ) ); ?></a>
     117                <?php
     118        }
     119        ?>
     120</div>
     121
     122<div class="misc-pub-section misc-pub-reply-to">
     123        <?php
     124        $author = get_comment_author( $comment->comment_parent );
     125        if ( ! empty( $author ) ) {
     126                 _e( 'In reply to' ); ?>:
     127                 <a href="<?php echo esc_url( get_comment_link( $comment->comment_parent ) ); ?>"><?php echo esc_html( $author ); ?></a>
     128                 <?php
     129        }
     130        ?>
     131</div>
     132
    110133</div> <!-- misc actions -->
    111134<div class="clear"></div>
    112135</div>