WordPress.org

Make WordPress Core

Changeset 18868


Ignore:
Timestamp:
10/03/2011 02:03:01 PM (7 years ago)
Author:
ryan
Message:

Use 'View Post' instead of '#' for view post links in comment rows. Props SergeyBiryukov. fixes #18846

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r18599 r18868  
    498498        $this->comments_bubble( $post->ID, $pending_comments );
    499499        echo '</span> ';
    500         echo "<a href='" . get_permalink( $post->ID ) . "'>#</a>";
     500        $post_type_object = get_post_type_object( $post->post_type );
     501        echo "<a href='" . get_permalink( $post->ID ) . "'>" . $post_type_object->labels->view_item . '</a>';
    501502        echo '</div>';
    502503        if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) )
Note: See TracChangeset for help on using the changeset viewer.