Skip to:
Content

BuddyPress.org

Changeset 12824


Ignore:
Timestamp:
12/13/2020 04:00:36 PM (3 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)

Location:
trunk/src
Files:
2 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(
  • trunk/src/bp-members/bp-members-admin.php

    r12775 r12824  
    2424    }
    2525
    26     if ( bp_is_network_activated() && is_network_admin() ) {
     26    if ( bp_is_network_activated() && ! bp_is_multiblog_mode() && is_network_admin() ) {
    2727        // Adds a users.php submenu to go to the root blog Member types screen.
    2828        $member_type_admin_url = add_query_arg( 'taxonomy', bp_get_member_type_tax_name(), get_admin_url( bp_get_root_blog_id(), 'edit-tags.php' ) );
Note: See TracChangeset for help on using the changeset viewer.