diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php
index 253d60b961..f19e1ed48e 100644
|
a
|
b
|
require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 209 | 209 | ?> |
| 210 | 210 | |
| 211 | 211 | <div class="wrap"> |
| 212 | | <h1 class="wp-heading-inline"> |
| 213 | 212 | <?php |
| | 213 | $heading = __( 'Comments' ); |
| | 214 | $edit_link = ''; |
| 214 | 215 | if ( $post_id ) { |
| 215 | | printf( |
| | 216 | $heading = sprintf( |
| 216 | 217 | /* translators: %s: Link to post. */ |
| 217 | 218 | __( 'Comments on “%s”' ), |
| 218 | 219 | sprintf( |
| 219 | 220 | '<a href="%1$s">%2$s</a>', |
| 220 | | get_edit_post_link( $post_id ), |
| | 221 | get_permalink( $post_id ), |
| 221 | 222 | wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) |
| 222 | 223 | ) |
| 223 | 224 | ); |
| 224 | | } else { |
| 225 | | _e( 'Comments' ); |
| | 225 | $edit_link = sprintf( |
| | 226 | '<br /><a href="%1$s">%2$s</a>', |
| | 227 | get_edit_post_link( $post_id ), |
| | 228 | __( 'Edit this post' ) |
| | 229 | ); |
| 226 | 230 | } |
| 227 | 231 | ?> |
| 228 | | </h1> |
| | 232 | <h1 class="wp-heading-inline"><?php echo $heading; ?></h1> |
| | 233 | <?php echo $edit_link; ?> |
| 229 | 234 | |
| 230 | 235 | <?php |
| 231 | 236 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |