Changeset 5429
- Timestamp:
- 12/01/2011 05:57:55 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-admin.php
r5423 r5429 74 74 */ 75 75 function bp_core_admin_backpat_page() { 76 $settings_url = add_query_arg( 'page', 'bp-general-config', bp_core_do_network_admin() ? network_admin_url( 'settings.php' ) : admin_url( 'options-general.php' ) ); 76 77 ?> 77 78 <div class="wrap"> … … 80 81 81 82 <p><?php _e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", 'buddypress' ); ?></p> 82 <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', 'buddpress' ), network_admin_url( 'options-general.php?page=bp-general-config' ), network_admin_url( 'users.php?page=bp-profile-setup' ) ); ?></p>83 <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', 'buddpress' ), $settings_url, network_admin_url( 'users.php?page=bp-profile-setup' ) ); ?></p> 83 84 </div> 84 85 <?php -
trunk/bp-core/bp-core-functions.php
r5425 r5429 340 340 341 341 $hooks = array(); 342 $page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; 342 343 343 344 // Changed in BP 1.6 . See bp_core_admin_backpat_menu() … … 346 347 347 348 // Add the option pages 348 $hooks[] = add_ options_page(__( 'BuddyPress Components', 'buddypress' ), __( 'BuddyPress', 'buddypress' ), 'manage_options', 'bp-general-config', 'bp_core_admin_component_setup' );349 $hooks[] = add_ options_page(__( 'BuddyPress Pages', 'buddypress' ), __( 'BuddyPress Pages', 'buddypress' ), 'manage_options', 'bp-page-settings', 'bp_core_admin_page_setup' );350 $hooks[] = add_ options_page(__( 'BuddyPress Settings', 'buddypress' ), __( 'BuddyPress Settings', 'buddypress' ), 'manage_options', 'bp-settings', 'bp_core_admin_settings' );349 $hooks[] = add_submenu_page( $page, __( 'BuddyPress Components', 'buddypress' ), __( 'BuddyPress', 'buddypress' ), 'manage_options', 'bp-general-config', 'bp_core_admin_component_setup' ); 350 $hooks[] = add_submenu_page( $page, __( 'BuddyPress Pages', 'buddypress' ), __( 'BuddyPress Pages', 'buddypress' ), 'manage_options', 'bp-page-settings', 'bp_core_admin_page_setup' ); 351 $hooks[] = add_submenu_page( $page, __( 'BuddyPress Settings', 'buddypress' ), __( 'BuddyPress Settings', 'buddypress' ), 'manage_options', 'bp-settings', 'bp_core_admin_settings' ); 351 352 352 353 foreach( $hooks as $hook ) { … … 365 366 */ 366 367 function bp_core_modify_admin_menu() { 367 remove_submenu_page( 'options-general.php', 'bb-forums-setup' ); 368 remove_submenu_page( 'options-general.php', 'bp-page-settings' ); 369 remove_submenu_page( 'options-general.php', 'bp-settings' ); 368 $page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; 369 370 remove_submenu_page( $page, 'bb-forums-setup' ); 371 remove_submenu_page( $page, 'bp-page-settings' ); 372 remove_submenu_page( $page, 'bp-settings' ); 370 373 } 371 374 add_action( "admin_head", 'bp_core_modify_admin_menu', 999 ); -
trunk/bp-forums/bp-forums-admin.php
r5406 r5429 10 10 11 11 // Add the option pages 12 $hook = add_options_page( __( 'BuddyPress Forums', 'buddypress' ), __( 'BuddyPress Forums', 'buddypress' ), 'manage_options', 'bb-forums-setup', 'bp_forums_bbpress_admin' ); 12 $page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; 13 $hook = add_submenu_page( $page, __( 'BuddyPress Forums', 'buddypress' ), __( 'BuddyPress Forums', 'buddypress' ), 'manage_options', 'bb-forums-setup', 'bp_forums_bbpress_admin' ); 13 14 14 15 // Add a hook for common BP admin CSS/JS scripts
Note: See TracChangeset
for help on using the changeset viewer.