mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Past and future time diffs, hat tip Eric Meyer. http://mosquito.wordpress.org/view.php?id=1059
git-svn-id: https://develop.svn.wordpress.org/trunk@2428 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user