WordPress.org

Make WordPress Core

Ticket #21010: edit-comments-view-post.diff

File edit-comments-view-post.diff, 885 bytes (added by mordauk, 3 years ago)
  • wp-admin/edit-comments.php

     
    142142<div class="wrap"> 
    143143<?php screen_icon(); ?> 
    144144<h2><?php 
    145 if ( $post_id ) 
     145if ( $post_id ) { 
    146146        echo sprintf(__('Comments on &#8220;%s&#8221;'), 
    147147                sprintf('<a href="%s">%s</a>', 
    148148                        get_edit_post_link($post_id), 
    149149                        wp_html_excerpt(_draft_or_post_title($post_id), 50) 
    150150                ) 
    151151        ); 
    152 else 
     152        echo ' &#45; ' . sprintf( '<a href="%s" target="_blank">%s</a>', get_permalink( $post_id ), __('View Post') ); 
     153} else { 
    153154        echo __('Comments'); 
    154  
     155} 
    155156if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 
    156157        printf( '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?> 
    157158</h2>