Make WordPress Core


Ignore:
Timestamp:
11/25/2008 09:14:31 PM (18 years ago)
Author:
ryan
Message:

Use view link not edit link. see #8344

File:
1 edited

Legend:

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

    r9879 r9880  
    19251925
    19261926        if ( current_user_can( 'edit_post', $post->ID ) ) {
    1927                 $post_href = get_edit_post_link($post->ID);
    1928                 $post_link = "<a href='" . $post_href . "'>";
     1927                $post_link = "<a href='" . get_edit_post_link($post->ID) . "'>";
    19291928                $post_link .= get_the_title($comment->comment_post_ID) . '</a>';
    19301929        } else {
    1931                 $post_href = '';
    19321930                $post_link = get_the_title($comment->comment_post_ID);
    19331931        }
     
    19731971                                echo "<td $attributes>";
    19741972                                echo '<div id="submitted-on">';
    1975                                 if ( !empty($post_href) )
    1976                                         printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), $post_href, get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
    1977                                 else
    1978                                         printf(__('Submitted on %1$s at %2$s</a>'), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
     1973                                printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_permalink($post->ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
    19791974                                echo '</div>';
    19801975                                comment_text(); ?>
Note: See TracChangeset for help on using the changeset viewer.