Changeset 3745 for trunk/bp-core.php
- Timestamp:
- 01/19/2011 02:55:32 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r3743 r3745 362 362 return false; 363 363 364 $hooks = array(); 365 364 366 // Add the administration tab under the "Site Admin" tab for site administrators 365 $hook = bp_core_add_admin_menu_page( array(367 $hooks[] = bp_core_add_admin_menu_page( array( 366 368 'menu_title' => __( 'BuddyPress', 'buddypress' ), 367 369 'page_title' => __( 'BuddyPress', 'buddypress' ), … … 372 374 ) ); 373 375 374 add_submenu_page( 'bp-general-settings', __( 'BuddyPress Dashboard', 'buddypress' ), __( 'Dashboard', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_dashboard' ); 375 add_submenu_page( 'bp-general-settings', __( 'Settings', 'buddypress' ), __( 'Settings', 'buddypress' ), 'manage_options', 'bp-settings', 'bp_core_admin_settings' ); 376 $hooks[] = add_submenu_page( 'bp-general-settings', __( 'BuddyPress Dashboard', 'buddypress' ), __( 'Dashboard', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_dashboard' ); 377 $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Settings', 'buddypress' ), __( 'Settings', 'buddypress' ), 'manage_options', 'bp-settings', 'bp_core_admin_settings' ); 378 $hooks[] = add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress' ), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' ); 376 379 377 380 // Add a hook for css/js 378 add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' ); 381 foreach( $hooks as $hook ) { 382 add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' ); 383 } 379 384 } 380 385 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu', 9 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)