Ticket #3785: 3785-2.patch
| File 3785-2.patch, 3.6 KB (added by , 15 years ago) |
|---|
-
bp-core/admin/bp-core-admin.php
diff --git bp-core/admin/bp-core-admin.php bp-core/admin/bp-core-admin.php index 64ed7fe..a982ee6 100644
function bp_core_admin_tabs( $active_tab = '' ) { 73 73 * @todo Add convenience links into the markup once new positions are finalised. 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"> 78 79 <?php screen_icon( 'buddypress'); ?> 79 80 <h2><?php _e( 'Why have all my BuddyPress menus disappeared?', 'buddypress' ); ?></h2> 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 85 86 } -
bp-core/bp-core-functions.php
diff --git bp-core/bp-core-functions.php bp-core/bp-core-functions.php index 378715a..1e6237c 100644
function bp_core_add_admin_menu() { 339 339 return; 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() 344 345 $hooks[] = add_menu_page( __( 'BuddyPress', 'buddypress' ), __( 'BuddyPress', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_backpat_menu', '' ); 345 346 $hooks[] = add_submenu_page( 'bp-general-settings', __( 'BuddyPress Help', 'buddypress' ), __( 'Help', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_backpat_page' ); 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 ) { 353 354 // Add a hook for common BP admin CSS/JS scripts
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)