Add relative date to dashboard

git-svn-id: https://develop.svn.wordpress.org/trunk@2028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-01-01 22:15:58 +00:00
parent df201019ca
commit a31de8d099
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ if ( $rss ) {
$rss->items = array_slice($rss->items, 0, 4);
foreach ($rss->items as $item ) {
?>
<h4><a href='<?php echo $item['link']; ?>'><?php echo wp_specialchars($item['title']); ?></a></h4>
<h4><a href='<?php echo $item['link']; ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4>
<p><?php echo $item['description']; ?></p>
<?php
}