Ticket #6027: human-diff-comments.diff
| File human-diff-comments.diff, 1.1 KB (added by , 19 years ago) |
|---|
-
wp-admin/includes/template.php
606 606 $author_url_display = $author_url; 607 607 if ( strlen($author_url_display) > 50 ) 608 608 $author_url_display = substr($author_url_display, 0, 49) . '...'; 609 $ ptime = get_post_time('G', true);610 if ( ( abs(time() - $ ptime) ) < 86400 )611 $ptime = sprintf( __('%s ago'), human_time_diff( $ ptime) );609 $hours = mysql2date('G', $comment->comment_date_gmt); 610 if ( ( abs(time() - $hours) ) < 86400 ) 611 $ptime = sprintf( __('%s ago'), human_time_diff( $hours ) ); 612 612 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); 614 614 615 615 $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" ) ); 616 616 $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" ) );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)