mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Link post title on comments for a single post screen. Fixes #15609
git-svn-id: http://svn.automattic.com/wordpress/trunk@16619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3030c278ba
commit
69277a1e7c
@ -126,7 +126,17 @@ require_once('./admin-header.php');
|
|||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?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'] )
|
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>' ); ?>
|
printf( '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?>
|
||||||
</h2>
|
</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user