mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Show comment time, not post time.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f77979b0a
commit
cd23e67355
@ -606,11 +606,11 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
|
||||
$author_url_display = $author_url;
|
||||
if ( strlen($author_url_display) > 50 )
|
||||
$author_url_display = substr($author_url_display, 0, 49) . '...';
|
||||
$ptime = get_post_time('G', true);
|
||||
$ptime = date('G', strtotime( $comment->comment_date ) );
|
||||
if ( ( abs(time() - $ptime) ) < 86400 )
|
||||
$ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) );
|
||||
else
|
||||
$ptime = mysql2date(__('Y/m/d \a\t g:i A'), $post->post_date);
|
||||
$ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date );
|
||||
|
||||
$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" ) );
|
||||
$approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user