Make WordPress Core

Changeset 7528


Ignore:
Timestamp:
03/26/2008 07:35:42 PM (17 years ago)
Author:
ryan
Message:

Link to post instead of post editor from edit-comments.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r7514 r7528  
    618618
    619619    if ( current_user_can( 'edit_post', $post->ID ) ) {
    620         if ( 'attachment' == $post->post_type )
    621             $post_link = "<a href='upload.php?attachment_id=$post->ID'>";
    622         elseif ( 'page' == $post->post_type )
    623             $post_link = "<a href='edit-pages.php?page_id=$post->ID'>";
    624         else
    625             $post_link = "<a href='edit.php?p=$post->ID'>";
     620        $post_link = "<a href='" . get_comment_link() . "'>";
    626621
    627622        $post_link .= get_the_title($comment->comment_post_ID) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.