Skip to:
Content

BuddyPress.org

Ticket #3866: 3866.01.patch

File 3866.01.patch, 3.1 KB (added by r-a-y, 13 years ago)
  • bp-core/admin/bp-core-functions.php

    add_action( bp_core_admin_hook(), 'bp_core_admin_backpat_menu', 999 ); 
    7070function bp_core_modify_admin_menu() {
    7171        $page  = bp_core_do_network_admin()  ? 'settings.php' : 'options-general.php';
    7272
    73         remove_submenu_page( $page, 'bb-forums-setup' );
     73        remove_submenu_page( $page, 'bp-forums' );
    7474        remove_submenu_page( $page, 'bp-slugs'        );
    7575        remove_submenu_page( $page, 'bp-settings'     );
    7676}
  • bp-forums/bp-forums-admin.php

    function bp_forums_add_admin_menu() { 
    1010
    1111        // Add the option pages
    1212        $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        $hook = add_submenu_page( $page, __( 'BuddyPress Forums', 'buddypress' ), __( 'BuddyPress Forums', 'buddypress' ), 'manage_options', 'bp-forums', 'bp_forums_bbpress_admin' );
    1414
    1515        // Add a hook for common BP admin CSS/JS scripts
    1616        add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' );
    add_action( bp_core_admin_hook(), 'bp_forums_add_admin_menu' ); 
    2323function bp_forums_bbpress_admin() {
    2424        global $bp;
    2525
    26         $action = bp_get_admin_url( 'admin.php?page=bb-forums-setup&reinstall=1' ); ?>
     26        $action = bp_get_admin_url( 'admin.php?page=bp-forums&reinstall=1' ); ?>
    2727
    2828        <div class="wrap">
    2929                <?php screen_icon( 'buddypress' ); ?>
    function bp_forums_bbpress_admin() { 
    9191}
    9292
    9393function bp_forums_bbpress_install_wizard() {
    94         $post_url = network_admin_url( 'admin.php?page=bb-forums-setup' );
     94        $post_url = network_admin_url( 'admin.php?page=bp-forums' );
    9595
    9696        $step = isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : '';
    9797
  • bp-themes/bp-default/groups/create.php

     
    6868                                                        <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
    6969
    7070                                                                <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=bb-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>
    7272                                                                </div>
    7373
    7474                                                        <?php endif; ?>