Ticket #3866: 3866.01.patch
File 3866.01.patch, 3.1 KB (added by , 13 years ago) |
---|
-
bp-core/admin/bp-core-functions.php
add_action( bp_core_admin_hook(), 'bp_core_admin_backpat_menu', 999 ); 70 70 function bp_core_modify_admin_menu() { 71 71 $page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; 72 72 73 remove_submenu_page( $page, 'b b-forums-setup' );73 remove_submenu_page( $page, 'bp-forums' ); 74 74 remove_submenu_page( $page, 'bp-slugs' ); 75 75 remove_submenu_page( $page, 'bp-settings' ); 76 76 } -
bp-forums/bp-forums-admin.php
function bp_forums_add_admin_menu() { 10 10 11 11 // Add the option pages 12 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', 'b b-forums-setup', 'bp_forums_bbpress_admin' );13 $hook = add_submenu_page( $page, __( 'BuddyPress Forums', 'buddypress' ), __( 'BuddyPress Forums', 'buddypress' ), 'manage_options', 'bp-forums', 'bp_forums_bbpress_admin' ); 14 14 15 15 // Add a hook for common BP admin CSS/JS scripts 16 16 add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' ); … … add_action( bp_core_admin_hook(), 'bp_forums_add_admin_menu' ); 23 23 function bp_forums_bbpress_admin() { 24 24 global $bp; 25 25 26 $action = bp_get_admin_url( 'admin.php?page=b b-forums-setup&reinstall=1' ); ?>26 $action = bp_get_admin_url( 'admin.php?page=bp-forums&reinstall=1' ); ?> 27 27 28 28 <div class="wrap"> 29 29 <?php screen_icon( 'buddypress' ); ?> … … function bp_forums_bbpress_admin() { 91 91 } 92 92 93 93 function bp_forums_bbpress_install_wizard() { 94 $post_url = network_admin_url( 'admin.php?page=b b-forums-setup' );94 $post_url = network_admin_url( 'admin.php?page=bp-forums' ); 95 95 96 96 $step = isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : ''; 97 97 -
bp-themes/bp-default/groups/create.php
68 68 <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?> 69 69 70 70 <div class="checkbox"> 71 <label><input type="checkbox" disabled="disabled" name="disabled" id="disabled" value="0" /> <?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_get_root_domain() . '/wp-admin/admin.php?page=b b-forums-setup' ); ?></label>71 <label><input type="checkbox" disabled="disabled" name="disabled" id="disabled" value="0" /> <?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_get_root_domain() . '/wp-admin/admin.php?page=bp-forums' ); ?></label> 72 72 </div> 73 73 74 74 <?php endif; ?>