+ <th scope="row"><?php /* translators: column name or table row header */ _e( 'In Response To' ); ?></th>
+ <td>
+ <?php
+ $post_id = $comment->comment_post_ID;
+ if ( current_user_can( 'edit_post', $post_id ) ) {
+ $post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>";
+ $post_link .= esc_html( get_the_title( $post_id ) ) . '</a>';
+ } else {
+ $post_link = esc_html( get_the_title( $post_id ) );
+ }
+ echo $post_link;
+
+ if ( $comment->comment_parent ) {
+ $parent = get_comment( $comment->comment_parent );
+ $parent_link = esc_url( get_comment_link( $parent ) );
+ $name = get_comment_author( $parent );
+ printf(
+ /* translators: %s: comment link */
+ ' | ' . __( 'In reply to %s.' ),
+ '<a href="' . $parent_link . '">' . $name . '</a>'
+ );
+ }
+ ?>
+ </td>
+</tr>
+<tr>
+ <th scope="row"><?php _e( 'Submitted on' ); ?></th>
+ <td>
+ <a href="<?php echo esc_url( get_comment_link( $comment ) ); ?>"><?php
+ /* translators: 1: comment date, 2: comment time */
+ printf( __( '%1$s at %2$s' ),
+ /* translators: comment date format. See http://php.net/date */
+ get_comment_date( __( 'Y/m/d' ), $comment ),
+ get_comment_date( get_option( 'time_format' ), $comment )
+ );
+ ?></a>
+ </td>
+</tr>
+<tr>
+<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>