WordPress.org

Make WordPress Core

Ticket #15609: 15609.diff

File 15609.diff, 781 bytes (added by scribu, 7 years ago)
  • wp-admin/edit-comments.php

     
    126126
    127127<div class="wrap">
    128128<?php screen_icon(); ?>
    129 <h2><?php echo esc_html( $title );
     129<h2><?php
     130if ( $post_id )
     131        echo sprintf(__('Comments on &#8220;%s&#8221;'),
     132                sprintf('<a href="%s">%s</a>',
     133                        get_edit_post_link($post_id),
     134                        wp_html_excerpt(_draft_or_post_title($post_id), 50)
     135                )
     136        );
     137else
     138        echo __('Comments');
     139
    130140if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
    131141        printf( '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?>
    132142</h2>