Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/28/2011 10:30:03 PM (14 years ago)
Author:
djpaul
Message:

Relocates the top-level BuddyPress admin menu to under the Settings and Users menus. Maintains compatibility with third-party plugins that add their admin menus under the old top-level BP menu. See #3708.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r5329 r5406  
    193193
    194194                $step_count  = count( $this->steps ) - 1;
    195                 $wiz_or_set  = $this->current_step >= $step_count ? 'bp-general-settings' : 'bp-wizard';
     195                $wiz_or_set  = $this->current_step >= $step_count ? 'bp-general-config' : 'bp-wizard';
    196196                $form_action = bp_core_update_do_network_admin() ? network_admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) ) : admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) );
    197197            ?>
     
    11341134
    11351135            // Redirect to the BuddyPress dashboard
    1136             $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp-general-settings' ), network_admin_url( 'admin.php' ) ) : add_query_arg( array( 'page' => 'bp-general-settings' ), admin_url( 'admin.php' ) );
     1136            $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp-general-config' ), network_admin_url( 'admin.php' ) ) : add_query_arg( array( 'page' => 'bp-general-config' ), admin_url( 'admin.php' ) );
    11371137
    11381138            wp_redirect( $redirect );
     
    13551355
    13561356        /* Settings Icon */
    1357         ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img { display: none; }
    1358         ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
    1359         ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a,
    1360         ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-menu-image a {
     1357        ul#adminmenu li.toplevel_page_bp-general-config .wp-menu-image a img { display: none; }
     1358        ul#adminmenu li.toplevel_page_bp-general-config .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
     1359        ul#adminmenu li.toplevel_page_bp-general-config:hover .wp-menu-image a,
     1360        ul#adminmenu li.toplevel_page_bp-general-config.wp-has-current-submenu .wp-menu-image a {
    13611361            background-position: -1px 0;
    13621362        }
Note: See TracChangeset for help on using the changeset viewer.