Ticket #27271: 27271.diff
File 27271.diff, 623 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/formatting.php
2311 2311 * @return string Human readable time difference. 2312 2312 */ 2313 2313 function human_time_diff( $from, $to = '' ) { 2314 if ( empty( $to ) ) 2314 if ( empty( $to ) ) { 2315 2315 $to = time(); 2316 } 2316 2317 2317 2318 $diff = (int) abs( $to - $from ); 2318 2319 … … 2349 2350 $since = sprintf( _n( '%s year', '%s years', $years ), $years ); 2350 2351 } 2351 2352 2352 return $since;2353 return apply_filters( 'human_time_diff', $since, $diff ); 2353 2354 } 2354 2355 2355 2356 /**