Changeset 6338 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 09/16/2012 03:50:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r6310 r6338 375 375 * 376 376 * @package BuddyPress Core 377 * @uses apply_filters() Filter 'bp_core_time_since_pre' to bypass BP's calculations 378 * @uses apply_filters() Filter 'bp_core_time_since' to modify BP's calculations 377 379 * @param $older_date int Unix timestamp of date you want to calculate the time since for 378 380 * @param $newer_date int Unix timestamp of date to compare older date to. Default false (current time). … … 380 382 */ 381 383 function bp_core_time_since( $older_date, $newer_date = false ) { 384 385 // Use this filter to bypass BuddyPress's time_since calculations 386 if ( $pre_value = apply_filters( 'bp_core_time_since_pre', false, $older_date, $newer_date ) ) { 387 return $pre_value; 388 } 382 389 383 390 // Setup the strings … … 469 476 } 470 477 471 return $output;478 return apply_filters( 'bp_core_time_since', $output, $older_date, $newer_date ); 472 479 } 473 480
Note: See TracChangeset
for help on using the changeset viewer.