Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/20/2011 03:43:16 PM (14 years ago)
Author:
djpaul
Message:

Fix forum settings link in admin, and revert other admin slugs back to their 1.5 names. See #3840

File:
1 edited

Legend:

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

    r5574 r5575  
    7272
    7373    remove_submenu_page( $page, 'bb-forums-setup' );
    74     remove_submenu_page( $page, 'bp-slugs'        );
     74    remove_submenu_page( $page, 'bp-page-settings' );
    7575    remove_submenu_page( $page, 'bp-settings'     );
    7676}
     
    286286
    287287    if ( !empty( $orphaned_components ) ) {
    288         $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-slugs' ), 'admin.php' ) );
     288        $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    289289        $notice    = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s" class="button-secondary">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' );
    290290
     
    311311    // If there are duplicates, post a message about them
    312312    if ( !empty( $dupe_names ) ) {
    313         $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-slugs' ), 'admin.php' ) );
     313        $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    314314        $notice    = sprintf( __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %2$s. <a href="%1$s" class="button-secondary">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>' );
    315315
     
    352352        /* Settings Icon */
    353353        ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a img,
    354         ul#adminmenu li.toplevel_page_bp-settings .wp-menu-image a img {
     354        ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img {
    355355            display: none;
    356356        }
    357357
    358358        ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a,
    359         ul#adminmenu li.toplevel_page_bp-settings .wp-menu-image a {
     359        ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a {
    360360            background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px;
    361361        }
    362362
    363363        ul#adminmenu li.toplevel_page_bp-components:hover .wp-menu-image a,
    364         ul#adminmenu li.toplevel_page_bp-settings:hover .wp-menu-image a,
     364        ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a,
    365365        ul#adminmenu li.toplevel_page_bp-components.wp-has-current-submenu .wp-menu-image a,
    366         ul#adminmenu li.toplevel_page_bp-settings.wp-has-current-submenu .wp-menu-image a {
     366        ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-menu-image a {
    367367            background-position: -1px 0;
    368368        }
     
    417417        ),
    418418        '1' => array(
    419             'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-slugs'      ), 'admin.php' ) ),
     419            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings'      ), 'admin.php' ) ),
    420420            'name' => __( 'Permalinks', 'buddypress' )
    421421        ),
     
    429429    if ( bp_is_active( 'forums' ) ) {
    430430        $tabs['3'] = array(
    431             'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-forums'    ), 'admin.php' ) ),
     431            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bb-forums-setup' ), 'admin.php' ) ),
    432432            'name' => __( 'Forums', 'buddypress' )
    433433        );
Note: See TracChangeset for help on using the changeset viewer.