Make WordPress Core

Changeset 2028


Ignore:
Timestamp:
01/01/2005 10:15:58 PM (21 years ago)
Author:
saxmatt
Message:

Add relative date to dashboard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r1980 r2028  
    9898foreach ($rss->items as $item ) {
    9999?>
    100 <h4><a href='<?php echo $item['link']; ?>'><?php echo wp_specialchars($item['title']); ?></a></h4>
     100<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>
    101101<p><?php echo $item['description']; ?></p>
    102102<?php
Note: See TracChangeset for help on using the changeset viewer.