Make WordPress Core

Changeset 2124


Ignore:
Timestamp:
01/24/2005 06:01:04 AM (22 years ago)
Author:
saxmatt
Message:

Handle time_diff less than a minute ​http://mosquito.wordpress.org/view.php?id=737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r2117 r2124  
    621621        if ($diff <= 3600) {
    622622                $mins = round($diff / 60);
    623                 $since = sprintf( __('%s mins'), $mins);
     623                if ($mins <= 1)
     624                        $since = __('1 min');
     625                else
     626                        $since = sprintf( __('%s mins'), $mins);
    624627        } else if (($diff <= 86400) && ($diff > 3600)) {
    625628                $hours = round($diff / 3600);
Note: See TracChangeset for help on using the changeset viewer.