Changeset 31641 for trunk/src/wp-admin/edit-form-comment.php
- Timestamp:
- 03/06/2015 02:05:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-comment.php
r31053 r31641 109 109 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div> 110 110 </div> 111 112 <?php 113 $post_id = $comment->comment_post_ID; 114 if ( current_user_can( 'edit_post', $post_id ) ) { 115 $post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; 116 $post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; 117 } else { 118 $post_link = esc_html( get_the_title( $post_id ) ); 119 } 120 ?> 121 122 <div class="misc-pub-section misc-pub-response-to"> 123 <?php printf( __( 'In response to: <b>%s</b>' ), $post_link ); ?> 124 </div> 125 126 <?php 127 if ( $comment->comment_parent ) : 128 $parent = get_comment( $comment->comment_parent ); 129 $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); 130 $name = get_comment_author( $parent->comment_ID ); 131 ?> 132 <div class="misc-pub-section misc-pub-reply-to"> 133 <?php printf( __( 'In reply to: <b><a href="%1$s">%2$s</a></b>' ), $parent_link, $name ); ?> 134 </div> 135 <?php endif; ?> 136 111 137 </div> <!-- misc actions --> 112 138 <div class="clear"></div>
Note: See TracChangeset
for help on using the changeset viewer.