1 | --- C:\phpdev\xampp\htdocs\kuhari\wp-content\plugins\buddypress-1531\bp-core\bp- |
---|
2 | core-functions.php 2012-01-10 21:12:32.000000000 +0100 |
---|
3 | +++ C:\phpdev\xampp\htdocs\kuhari\wp-content\plugins\buddypress-1531\bp-core\bp- |
---|
4 | core-functions_patched.php 2012-02-06 18:47:41.485711000 +0100 |
---|
5 | @@ -597,6 +597,11 @@ |
---|
6 | */ |
---|
7 | function bp_core_time_since( $older_date, $newer_date = false ) { |
---|
8 | |
---|
9 | + $filter = apply_filters('bp_core_time_since_pre', '', $older_date, $newe |
---|
10 | r_date); |
---|
11 | + |
---|
12 | + if( '' != $filter ) |
---|
13 | + return $filter; |
---|
14 | + |
---|
15 | // Setup the strings |
---|
16 | $unknown_text = apply_filters( 'bp_core_time_since_unknown_text', __ |
---|
17 | ( 'sometime', 'buddypress' ) ); |
---|
18 | $right_now_text = apply_filters( 'bp_core_time_since_right_now_text', __ |
---|
19 | ( 'right now', 'buddypress' ) ); |
---|
20 | @@ -683,7 +688,7 @@ |
---|
21 | $output = sprintf( $ago_text, $output ); |
---|
22 | } |
---|
23 | |
---|
24 | - return $output; |
---|
25 | + return apply_filters('bp_core_time_since_post', $output, $older_date, $n |
---|
26 | ewer_date); |
---|
27 | } |
---|
28 | |
---|
29 | /** |
---|