Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core.php

    r3447 r4066  
    285285        bp_core_install();
    286286}
    287 add_action( 'admin_menu', 'bp_core_check_installed' );
     287add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_check_installed' );
    288288
    289289/**
     
    301301        return false;
    302302
    303     /* Add the administration tab under the "Site Admin" tab for site administrators */
     303    // If this is WP 3.1+ and multisite is enabled, only load on the Network Admin
     304    if ( is_multisite() && function_exists( 'is_network_admin' ) && ! is_network_admin()  )
     305        return false;
     306
     307    // Add the administration tab under the "Site Admin" tab for site administrators
    304308    bp_core_add_admin_menu_page( array(
    305309        'menu_title' => __( 'BuddyPress', 'buddypress' ),
     
    313317    add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' );
    314318}
    315 add_action( 'admin_menu', 'bp_core_add_admin_menu' );
     319add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu' );
    316320
    317321/**
Note: See TracChangeset for help on using the changeset viewer.