diff --git src/bp-core/bp-core-buddybar.php src/bp-core/bp-core-buddybar.php
index f16557f..95b3f63 100644
|
|
|
function bp_core_remove_nav_item( $slug, $component = null ) { |
| 783 | 783 | // Backward compatibility for removing group nav items using the group slug as `$parent_slug`. |
| 784 | 784 | if ( ! $component && bp_is_active( 'groups' ) && isset( $bp->groups->nav ) ) { |
| 785 | 785 | if ( $bp->groups->nav->get_primary( array( 'slug' => $slug ) ) ) { |
| 786 | | return bp_core_remove_nav_item( $slug, 'groups' ); |
| | 786 | $component = 'groups'; |
| 787 | 787 | } |
| 788 | 788 | } |
| 789 | 789 | |
| … |
… |
function bp_core_remove_subnav_item( $parent_slug, $slug, $component = null ) { |
| 834 | 834 | // Backward compatibility for removing group nav items using the group slug as `$parent_slug`. |
| 835 | 835 | if ( ! $component && bp_is_active( 'groups' ) && isset( $bp->groups->nav ) ) { |
| 836 | 836 | if ( $bp->groups->nav->get_primary( array( 'slug' => $parent_slug ) ) ) { |
| 837 | | return bp_core_remove_subnav_item( $slug, $parent_slug, 'groups' ); |
| | 837 | $component = 'groups'; |
| 838 | 838 | } |
| 839 | 839 | } |
| 840 | 840 | |