diff --git src/bp-core/bp-core-buddybar.php src/bp-core/bp-core-buddybar.php
index f16557f..f1eb2e9 100644
|
|
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 | return bp_core_remove_subnav_item( $parent_slug, $slug, 'groups' ); |
838 | 838 | } |
839 | 839 | } |
840 | 840 | |