Make WordPress Core

Changeset 16619


Ignore:
Timestamp:
11/29/2010 09:23:20 PM (15 years ago)
Author:
scribu
Message:

Link post title on comments for a single post screen. Fixes #15609

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r16617 r16619  
    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>' ); ?>
Note: See TracChangeset for help on using the changeset viewer.