WordPress.org

Make WordPress Core

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

File 23988-edit-comment-3.diff, 1.3 KB (added by Thaicloud, 7 years ago)
  • edit-form-comment.php

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