Ticket #1059: patch.txt
File patch.txt, 471 bytes (added by , 20 years ago) |
---|
Line | |
---|---|
1 | Index: wp-includes/functions-formatting.php |
2 | =================================================================== |
3 | --- wp-includes/functions-formatting.php (revision 2420) |
4 | +++ wp-includes/functions-formatting.php (working copy) |
5 | @@ -619,7 +619,7 @@ |
6 | function human_time_diff( $from, $to = '' ) { |
7 | if ( empty($to) ) |
8 | $to = time(); |
9 | - $diff = (int) ($to - $from); |
10 | + $diff = (int) abs($to - $from); |
11 | if ($diff <= 3600) { |
12 | $mins = round($diff / 60); |
13 | if ($mins <= 1) |