Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/28/2012 10:41:20 PM (12 years ago)
Author:
djpaul
Message:

Remove the bb-config.php file when group forums are uninstalled. Fixes #4397, props r-a-y

This change helps tidy up bbPress 1.x remnants when group forums are uninstalled. As this file
is automatically generated when bbPress 1.x group forums are installed, a user can reactivate the
old group forums and we'll rebuild the bb-config.php for them.

File:
1 edited

Legend:

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

    r6343 r6357  
    376376    do_action( 'bp_admin_tabs' );
    377377}
     378
     379/**
     380 * Add the confirmation inline javascript in the WP admin dashboard.
     381 *
     382 * Only add it if we're not in BP maintenance mode.
     383 *
     384 * @since BuddyPress (1.7)
     385 * @uses bp_get_maintenance_mode() To see if we're in BP maintenance mode.
     386 * @uses bp_core_confirmation_js() To output our inline JS.
     387 */
     388function bp_core_admin_add_confirm_js() {
     389    if ( ! bp_get_maintenance_mode() )
     390        bp_core_confirmation_js();
     391}
     392add_action( 'admin_head', 'bp_core_admin_add_confirm_js' );
Note: See TracChangeset for help on using the changeset viewer.