Make WordPress Core

Ticket #23988: 23988-edit-comment.diff

File 23988-edit-comment.diff, 1.1 KB (added by seanchayes, 10 years ago)
  • src/wp-admin/edit-form-comment.php

     
    5555                } ?></td>
    5656        <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" /></td>
    5757</tr>
     58<tr>
     59<td class="first">
     60        <?php _e( 'In response to' ); ?>:
     61</td>
     62<td>
     63    <a href="<?php echo get_permalink( $comment->comment_post_ID ); ?>"><?php echo get_the_title( $comment->comment_post_ID ); ?></a>
     64</td>
     65</tr>
     66<?php
     67    if ( $comment->comment_parent ) {
     68    $parent = get_comment( $comment->comment_parent );
     69    $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
     70    $name = get_comment_author( $parent->comment_ID );
     71?>
     72<tr>
     73    <td class="first"><?php _e('In reply to ');?>: </td>
     74    <td><?php printf( __( '<a href="%1$s">%2$s</a>' ), $parent_link, $name ); ?> </td>
     75</tr>
     76<?php } ?>
     77
    5878</tbody>
    5979</table>
    6080<br />