Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/28/2011 10:30:03 PM (13 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-admin.php

    r5302 r5406  
    2929    $tabs = array(
    3030        '0' => array(
    31             'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-general-settings' ), 'admin.php' ) ),
     31            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-general-config' ), 'admin.php' ) ),
    3232            'name' => __( 'Components', 'buddypress' )
    3333        ),
     
    6262    // Do other fun things
    6363    do_action( 'bp_admin_tabs' );
     64}
     65
     66/**
     67 * Generates markup for a fallback top-level BuddyPress menu page, if the site is running
     68 * a legacy plugin which hasn't been updated. If the site is up to date, this page
     69 * will never appear.
     70 *
     71 * @see bp_core_admin_backpat_menu()
     72 * @since 1.6
     73 * @todo Add convenience links into the markup once new positions are finalised.
     74 */
     75function bp_core_admin_backpat_page() {
     76?>
     77    <div class="wrap">
     78        <?php screen_icon( 'buddypress'); ?>
     79        <h2><?php _e( 'Why have all my BuddyPress menus disappeared?', 'buddypress' ); ?></h2>
     80
     81        <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 &gt; 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    </div>
     84<?php
    6485}
    6586
     
    218239        }
    219240
    220         $base_url = bp_get_admin_url(  add_query_arg( array( 'page' => 'bp-general-settings', 'updated' => 'true' ), 'admin.php' ) );
     241        $base_url = bp_get_admin_url(  add_query_arg( array( 'page' => 'bp-general-config', 'updated' => 'true' ), 'admin.php' ) );
    221242
    222243        wp_redirect( $base_url );
Note: See TracChangeset for help on using the changeset viewer.