Changes in branches/1.2/bp-core.php [3447:4066]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core.php
r3447 r4066 285 285 bp_core_install(); 286 286 } 287 add_action( 'admin_menu', 'bp_core_check_installed' );287 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_check_installed' ); 288 288 289 289 /** … … 301 301 return false; 302 302 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 304 308 bp_core_add_admin_menu_page( array( 305 309 'menu_title' => __( 'BuddyPress', 'buddypress' ), … … 313 317 add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' ); 314 318 } 315 add_action( 'admin_menu', 'bp_core_add_admin_menu' );319 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu' ); 316 320 317 321 /**
Note: See TracChangeset
for help on using the changeset viewer.