Ticket #4590: 4590.diff
File 4590.diff, 2.0 KB (added by , 9 years ago) |
---|
-
src/bp-activity/bp-activity-template.php
4446 4446 * @since 2.1.0 4447 4447 * 4448 4448 * @param string $context The current context. 'activity', 'member', 4449 * 'member_groups', 'group' .4449 * 'member_groups', 'group', 'mentions'. 4450 4450 * 4451 4451 * @return string HTML for <option> values. 4452 4452 */ … … 4455 4455 if ( empty( $context ) ) { 4456 4456 4457 4457 // On member pages, default to 'member', unless this 4458 // is a user's Groups activity .4458 // is a user's Groups activity or a user's mentions activity. 4459 4459 if ( bp_is_user() ) { 4460 4460 if ( bp_is_active( 'groups' ) && bp_is_current_action( bp_get_groups_slug() ) ) { 4461 4461 $context = 'member_groups'; 4462 } elseif ( bp_is_current_action( 'mentions' ) ) { 4463 $context = 'mentions'; 4462 4464 } else { 4463 4465 $context = 'member'; 4464 4466 } … … 4498 4500 * @since 2.2.0 4499 4501 * 4500 4502 * @param array $filters Array of filter options for the given context, in the following format: $option_value => $option_name. 4501 * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group' .4503 * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group', 'mentions'. 4502 4504 */ 4503 4505 $filters = apply_filters( 'bp_get_activity_show_filters_options', $filters, $context ); 4504 4506 … … 4518 4520 * 4519 4521 * @param string $output HTML output for the activity filter dropdown. 4520 4522 * @param array $filters Array of filter options for the given context, in the following format: $option_value => $option_name. 4521 * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group' .4523 * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group', 'mentions'. 4522 4524 */ 4523 4525 return apply_filters( 'bp_get_activity_show_filters', $output, $filters, $context ); 4524 4526 }