Changeset 28670
- Timestamp:
- 06/05/2014 12:38:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28444 r28670 2336 2336 */ 2337 2337 function human_time_diff( $from, $to = '' ) { 2338 if ( empty( $to ) ) 2338 if ( empty( $to ) ) { 2339 2339 $to = time(); 2340 } 2340 2341 2341 2342 $diff = (int) abs( $to - $from ); … … 2374 2375 } 2375 2376 2376 return $since; 2377 /** 2378 * Filter the human readable difference between two timestamps. 2379 * 2380 * @since 4.0.0 2381 * 2382 * @param string $since The difference in human readable text. 2383 * @param int $diff The difference in seconds. 2384 * @param int $from Unix timestamp from which the difference begins. 2385 * @param int $to Unix timestamp to end the time difference. 2386 */ 2387 return apply_filters( 'human_time_diff', $since, $diff, $from, $to ); 2377 2388 } 2378 2389
Note: See TracChangeset
for help on using the changeset viewer.