Link post title on comments for a single post screen. Fixes #15609
git-svn-id: https://develop.svn.wordpress.org/trunk@16619 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0829265944
commit
9f5043b6dc
@ -126,7 +126,17 @@ require_once('./admin-header.php');
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title );
|
||||
<h2><?php
|
||||
if ( $post_id )
|
||||
echo sprintf(__('Comments on “%s”'),
|
||||
sprintf('<a href="%s">%s</a>',
|
||||
get_edit_post_link($post_id),
|
||||
wp_html_excerpt(_draft_or_post_title($post_id), 50)
|
||||
)
|
||||
);
|
||||
else
|
||||
echo __('Comments');
|
||||
|
||||
if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
|
||||
printf( '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?>
|
||||
</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user