WordPress.org

Make WordPress Core

Changeset 9237


Ignore:
Timestamp:
10/17/08 22:31:10 (6 years ago)
Author:
ryan
Message:

Link post title to editor and comment count to post filter

File:
1 edited

Legend:

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

    r9223 r9237  
    18251825 
    18261826    if ( current_user_can( 'edit_post', $post->ID ) ) { 
    1827         $post_link = "<a href='" . get_comment_link() . "'>"; 
     1827        $post_link = "<a href='" . get_edit_post_link($post->ID) . "'>"; 
    18281828        $post_link .= get_the_title($comment->comment_post_ID) . '</a>'; 
    18291829    } else { 
     
    19381938                break; 
    19391939            case 'response': 
    1940                 if ( 'single' !== $mode ) 
    1941                     echo "<td $attributes>&quot;$post_link&quot; " . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '<br />' . get_the_time(__('Y/m/d \a\t g:ia')) . '</td>'; 
     1940                echo "<td $attributes>\n"; 
     1941                echo "&quot;$post_link&quot; "; 
     1942                echo '<a href="edit-comments.php?p=' . $post->ID . '">' . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '</a><br />'; 
     1943                echo get_the_time(__('Y/m/d \a\t g:ia')); 
     1944                echo '</td>'; 
    19421945        } 
    19431946    } 
Note: See TracChangeset for help on using the changeset viewer.