wp-admin/comment.php 1 location
|
@@ 173-178 (lines=6) @@
|
170 |
|
<td> |
171 |
|
<?php |
172 |
|
$post_id = $comment->comment_post_ID; |
173 |
|
if ( current_user_can( 'edit_post', $post_id ) ) { |
174 |
|
$post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; |
175 |
|
$post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; |
176 |
|
} else { |
177 |
|
$post_link = esc_html( get_the_title( $post_id ) ); |
178 |
|
} |
179 |
|
echo $post_link; |
180 |
|
|
181 |
|
if ( $comment->comment_parent ) { |
wp-admin/edit-form-comment.php 1 location
|
@@ 111-116 (lines=6) @@
|
108 |
|
|
109 |
|
<?php |
110 |
|
$post_id = $comment->comment_post_ID; |
111 |
|
if ( current_user_can( 'edit_post', $post_id ) ) { |
112 |
|
$post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; |
113 |
|
$post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; |
114 |
|
} else { |
115 |
|
$post_link = esc_html( get_the_title( $post_id ) ); |
116 |
|
} |
117 |
|
?> |
118 |
|
|
119 |
|
<div class="misc-pub-section misc-pub-response-to"> |