Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2013 01:33:36 AM (13 years ago)
Author:
boonebgorges
Message:

Reintroduces legacy forum config tab for installations still using legacy forums

Without access to this page, it becomes impossible to regenerate the
bb-config.php file. We also lose the chance to preach the gospel of the new
bbPress plugin to users of bbPress 1.x when we don't have an admin panel for
the legacy component.

Fixes #4999

Props r-a-y

File:
1 edited

Legend:

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

    r6845 r7213  
    366366        );
    367367
     368        // If forums component is active, add additional tab
     369        if ( bp_is_active( 'forums' ) && class_exists( 'BP_Forums_Component' ) ) {
     370                // enqueue thickbox
     371                wp_enqueue_script( 'thickbox' );
     372                wp_enqueue_style( 'thickbox' );
     373
     374                $tabs['3'] = array(
     375                        'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bb-forums-setup'  ), 'admin.php' ) ),
     376                        'name' => __( 'Forums', 'buddypress' )
     377                );
     378        }
     379
    368380        // Loop through tabs and build navigation
    369381        foreach ( array_values( $tabs ) as $tab_data ) {
Note: See TracChangeset for help on using the changeset viewer.