Add relative date to dashboard
git-svn-id: http://svn.automattic.com/wordpress/trunk@2028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e5d942f411
commit
21f5e3f715
|
@ -97,7 +97,7 @@ if ( $rss ) {
|
||||||
$rss->items = array_slice($rss->items, 0, 4);
|
$rss->items = array_slice($rss->items, 0, 4);
|
||||||
foreach ($rss->items as $item ) {
|
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> — <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4>
|
||||||
<p><?php echo $item['description']; ?></p>
|
<p><?php echo $item['description']; ?></p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue