Skip to:
Content

BuddyPress.org

Changeset 12777


Ignore:
Timestamp:
11/09/2020 11:43:01 PM (4 years ago)
Author:
imath
Message:

Add an extra Groups menu to site's admin if BP is network activated

On multisite configs, as it's not possible to edit tags into the network admin, BuddyPress is generating the sub menu item to manage Group Types into the main site's admin. In this case, and this case only, we also need to generate a parent menu item to redirect the Administrator to the Network Groups admin page.

Fixes #8372

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r12775 r12777  
    7777        );
    7878    } elseif ( ! is_network_admin() ) {
    79         if ( is_multisite() && bp_is_root_blog( get_current_network_id() ) ) {
     79        if ( bp_is_network_activated() ) {
    8080            // Adds a 'bp-groups' menu to the root blog menu.
    8181            $redirect_hook = add_menu_page(
Note: See TracChangeset for help on using the changeset viewer.