Skip to:
Content

BuddyPress.org

Ticket #818: buddypress-t818-r1595.txt

File buddypress-t818-r1595.txt, 660 bytes (added by ev3rywh3re, 12 years ago)

Put a bp_core_filter_buddypress_theme_root in bp_core_add_admin_menu

Line 
1Index: bp-core.php
2===================================================================
3--- bp-core.php (revision 1595)
4+++ bp-core.php (working copy)
5@@ -301,6 +301,8 @@
6        if ( !is_site_admin() )
7                return false;
8               
9+       add_filter( 'theme_root', 'bp_core_filter_buddypress_theme_root' );
10+       
11        /* Add the administration tab under the "Site Admin" tab for site administrators */
12        add_menu_page( __("BuddyPress", 'buddypress'), __("BuddyPress", 'buddypress'), 2, 'bp-core.php', "bp_core_admin_settings" );
13        add_submenu_page( 'bp-core.php', __("General Settings", 'buddypress'), __("General Settings", 'buddypress'), 1, 'bp-core.php', "bp_core_admin_settings" );