Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/13/2020 04:00:36 PM (4 years ago)
Author:
imath
Message:

BP Types: use regular admin menu links when multiblog mode is on

For multisite configs defining the BP_ENABLE_MULTIBLOG constant to true, Admin menus for BP Types need to use regular admin links instead of network admin ones.

Props shawfactor

See #8411 (Trunk)

File:
1 edited

Legend:

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

    r12777 r12824  
    6666    }
    6767
    68     if ( bp_is_network_activated() && is_network_admin() ) {
     68    if ( bp_is_network_activated() && ! bp_is_multiblog_mode() && is_network_admin() ) {
    6969        // Adds a 'bp-groups' submenu to go to the root blog Group types screen.
    7070        $group_type_admin_url = add_query_arg( 'taxonomy', 'bp_group_type', get_admin_url( bp_get_root_blog_id(), 'edit-tags.php' ) );
     
    7777        );
    7878    } elseif ( ! is_network_admin() ) {
    79         if ( bp_is_network_activated() ) {
     79        if ( bp_is_network_activated() && ! bp_is_multiblog_mode() ) {
    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.