diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
index 0961c0805..6a4efd461 100644
|
|
|
function bp_is_user_friends_activity() {
|
| 2411 | 2411 | return false; |
| 2412 | 2412 | } |
| 2413 | 2413 | |
| 2414 | | $slug = bp_get_friends_slug(); |
| | 2414 | $slug = function_exists( 'bp_get_friends_slug' ) ? bp_get_friends_slug() : ''; |
| 2415 | 2415 | |
| 2416 | 2416 | if ( empty( $slug ) ) { |
| 2417 | 2417 | $slug = 'friends'; |
| … |
… |
function bp_is_user_groups_activity() {
|
| 2439 | 2439 | return false; |
| 2440 | 2440 | } |
| 2441 | 2441 | |
| 2442 | | $slug = ( bp_get_groups_slug() ) |
| 2443 | | ? bp_get_groups_slug() |
| 2444 | | : 'groups'; |
| | 2442 | $slug = function_exists( 'bp_get_groups_slug' ) ? bp_get_groups_slug() : ''; |
| | 2443 | |
| | 2444 | if ( empty( $slug ) ) { |
| | 2445 | $slug = 'groups'; |
| | 2446 | } |
| 2445 | 2447 | |
| 2446 | 2448 | if ( bp_is_user_activity() && bp_is_current_action( $slug ) ) { |
| 2447 | 2449 | return true; |