Update 1.0.56

This commit is contained in:
ultimatemember
2015-02-15 20:31:41 +02:00
parent 5ad611a472
commit 60943d9695
26 changed files with 217 additions and 61 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ class UM_DateTime {
$then_ts = strtotime($then);
$then_year = date('Y', $then_ts);
$age = date('Y') - $then_year;
if(strtotime('+' . $age . ' years', $then_ts) > time()) $age--;
if( strtotime('+' . $age . ' years', $then_ts) > current_time( 'timestamp' ) ) $age--;
if ( $age == 1 )
return sprintf(__('%s year old','ultimatemember'), $age );
if ( $age > 1 )