diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 9f977970f3..0a83dbe5ad 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -619,7 +619,7 @@ function sanitize_email($email) { function human_time_diff( $from, $to = '' ) { if ( empty($to) ) $to = time(); - $diff = (int) ($to - $from); + $diff = (int) abs($to - $from); if ($diff <= 3600) { $mins = round($diff / 60); if ($mins <= 1)