Make WordPress Core

Changeset 7231


Ignore:
Timestamp:
03/11/2008 07:28:47 AM (17 years ago)
Author:
matt
Message:

Show comment time, not post time.

File:
1 edited

Legend:

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

    r7207 r7231  
    607607    if ( strlen($author_url_display) > 50 )
    608608        $author_url_display = substr($author_url_display, 0, 49) . '...';
    609     $ptime = get_post_time('G', true);
     609    $ptime = date('G', strtotime( $comment->comment_date ) );
    610610    if ( ( abs(time() - $ptime) ) < 86400 )
    611611        $ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) );
    612612    else
    613         $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $post->post_date);
     613        $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date );
    614614
    615615    $delete_url    = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) );
Note: See TracChangeset for help on using the changeset viewer.