Make WordPress Core

Ticket #52353: 52353.4.diff

File 52353.4.diff, 614 bytes (added by lukecarbis, 4 years ago)

Same as third patch, but with numbered placeholders.

  • src/wp-admin/edit-comments.php

     
    228228</h1>
    229229
    230230<?php
     231if ( $post_id ) {
     232        $post_type_object = get_post_type_object( get_post_type( $post_id ) );
     233
     234        if ( $post_type_object ) {
     235                printf(
     236                        '<br /><a href="%1$s">%2$s</a>',
     237                        get_permalink( $post_id ),
     238                        $post_type_object->labels->view_item
     239                );
     240        }
     241}
     242
    231243if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    232244        echo '<span class="subtitle">';
    233245        printf(