diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
index b4240b2..06e8e30 100644
a
|
b
|
function bp_activity_avatar( $args = '' ) { |
1164 | 1164 | * |
1165 | 1165 | * @since 1.1.3 |
1166 | 1166 | * |
1167 | | * @param array $value Array of arguments calculated for use with bp_core_fetch_avatar. |
| 1167 | * @param array $value HTML image element holding the activity avatar. |
1168 | 1168 | */ |
1169 | 1169 | return apply_filters( 'bp_get_activity_avatar', bp_core_fetch_avatar( array( |
1170 | 1170 | 'item_id' => $item_id, |
… |
… |
function bp_activity_action( $args = array() ) { |
1427 | 1427 | * |
1428 | 1428 | * @since 1.2.0 |
1429 | 1429 | * |
1430 | | * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. |
| 1430 | * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. |
1431 | 1431 | */ |
1432 | 1432 | return apply_filters_ref_array( 'bp_get_activity_action', array( |
1433 | 1433 | $action, |
… |
… |
function bp_activity_comment_name() { |
2097 | 2097 | global $activities_template; |
2098 | 2098 | |
2099 | 2099 | if ( isset( $activities_template->activity->current_comment->user_fullname ) ) { |
2100 | | |
2101 | 2100 | $name = apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment ); // Backward compatibility. |
2102 | 2101 | } else { |
2103 | 2102 | $name = $activities_template->activity->current_comment->display_name; |
… |
… |
function bp_activity_latest_update( $user_id = 0 ) { |
2879 | 2878 | * Filters the latest update excerpt. |
2880 | 2879 | * |
2881 | 2880 | * @since 1.2.10 |
| 2881 | * @since 2.6.0 Added the `$user_id` parameter. |
2882 | 2882 | * |
2883 | | * @param string $value The excerpt for the latest update. |
| 2883 | * @param string $value The excerpt for the latest update. |
| 2884 | * @param int $user_id ID of the queried user. |
2884 | 2885 | */ |
2885 | | $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) ); |
| 2886 | $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ), $user_id ); |
2886 | 2887 | |
2887 | 2888 | $latest_update = sprintf( |
2888 | 2889 | '%s <a href="%s">%s</a>', |
… |
… |
function bp_activity_latest_update( $user_id = 0 ) { |
2895 | 2896 | * Filters the latest update excerpt with view link appended to the end. |
2896 | 2897 | * |
2897 | 2898 | * @since 1.2.0 |
| 2899 | * @since 2.6.0 Added the `$user_id` parameter. |
2898 | 2900 | * |
2899 | 2901 | * @param string $latest_update The latest update with "view" link appended to it. |
| 2902 | * @param int $user_id ID of the queried user. |
2900 | 2903 | */ |
2901 | | return apply_filters( 'bp_get_activity_latest_update', $latest_update ); |
| 2904 | return apply_filters( 'bp_get_activity_latest_update', $latest_update, $user_id ); |
2902 | 2905 | } |
2903 | 2906 | |
2904 | 2907 | /** |
… |
… |
function bp_activity_filter_links( $args = false ) { |
3010 | 3013 | * Filters all of the constructed filter links. |
3011 | 3014 | * |
3012 | 3015 | * @since 1.1.0 |
| 3016 | * @since 2.6.0 Added the `$r` parameter. |
3013 | 3017 | * |
3014 | 3018 | * @param string $value All of the links to be displayed to the user. |
| 3019 | * @param array $r Array of parsed arguments. |
3015 | 3020 | */ |
3016 | | return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) ); |
| 3021 | return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ), $r ); |
3017 | 3022 | } |
3018 | 3023 | |
3019 | 3024 | /** |
… |
… |
function bp_total_favorite_count_for_user( $user_id = 0 ) { |
3168 | 3173 | * Filters the total favorite count for a user. |
3169 | 3174 | * |
3170 | 3175 | * @since 1.2.0 |
| 3176 | * @since 2.6.0 Added the `$user_id` parameter. |
3171 | 3177 | * |
3172 | | * @param int|bool $retval Total favorite count for a user. False on no favorites. |
| 3178 | * @param int|bool $retval Total favorite count for a user. False on no favorites. |
| 3179 | * @param int $user_id ID of the queried user. |
3173 | 3180 | */ |
3174 | | return apply_filters( 'bp_get_total_favorite_count_for_user', $retval ); |
| 3181 | return apply_filters( 'bp_get_total_favorite_count_for_user', $retval, $user_id ); |
3175 | 3182 | } |
3176 | 3183 | |
3177 | 3184 | |
… |
… |
function bp_total_mention_count_for_user( $user_id = 0 ) { |
3216 | 3223 | * Filters the total mention count for a user. |
3217 | 3224 | * |
3218 | 3225 | * @since 1.2.0 |
| 3226 | * @since 2.6.0 Added the `$user_id` parameter. |
3219 | 3227 | * |
3220 | | * @param int|bool $retval Total mention count for a user. False on no mentions. |
| 3228 | * @param int|bool $retval Total mention count for a user. False on no mentions. |
| 3229 | * @param int $user_id ID of the queried user. |
3221 | 3230 | */ |
3222 | | return apply_filters( 'bp_get_total_mention_count_for_user', $retval ); |
| 3231 | return apply_filters( 'bp_get_total_mention_count_for_user', $retval, $user_id ); |
3223 | 3232 | } |
3224 | 3233 | |
3225 | 3234 | /** |