Make WordPress Core

Ticket #52353: 52353.diff

File 52353.diff, 1.0 KB (added by audrasjb, 4 years ago)
  • src/wp-admin/edit-comments.php

    diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php
    index 253d60b961..f19e1ed48e 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    209209?>
    210210
    211211<div class="wrap">
    212 <h1 class="wp-heading-inline">
    213212<?php
     213$heading = __( 'Comments' );
     214$edit_link = '';
    214215if ( $post_id ) {
    215         printf(
     216        $heading = sprintf(
    216217                /* translators: %s: Link to post. */
    217218                __( 'Comments on &#8220;%s&#8221;' ),
    218219                sprintf(
    219220                        '<a href="%1$s">%2$s</a>',
    220                         get_edit_post_link( $post_id ),
     221                        get_permalink( $post_id ),
    221222                        wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '&hellip;' )
    222223                )
    223224        );
    224 } else {
    225         _e( 'Comments' );
     225        $edit_link = sprintf(
     226                '<br /><a href="%1$s">%2$s</a>',
     227                get_edit_post_link( $post_id ),
     228                __( 'Edit this post' )
     229        );
    226230}
    227231?>
    228 </h1>
     232<h1 class="wp-heading-inline"><?php echo $heading; ?></h1>
     233<?php echo $edit_link; ?>
    229234
    230235<?php
    231236if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {