Skip to:
Content

BuddyPress.org

Ticket #4397: 4397.01.patch

File 4397.01.patch, 1.6 KB (added by r-a-y, 12 years ago)
  • bp-core/admin/bp-core-functions.php

    function bp_core_admin_tabs( $active_tab = '' ) { 
    396396        do_action( 'bp_admin_tabs' );
    397397}
    398398
     399/**
     400 * Add the confirmation inline javascript in the WP admin dashboard.
     401 *
     402 * Only add it if we're not in BP maintenance mode.
     403 *
     404 * @since BuddyPress (1.6.1)
     405 * @uses bp_get_maintenance_mode() To see if we're in BP maintenance mode.
     406 * @uses bp_core_confirmation_js() To output our inline JS.
     407 */
     408function bp_core_admin_add_confirm_js() {
     409        if ( ! bp_get_maintenance_mode() )
     410                bp_core_confirmation_js();
     411}
     412add_action( 'admin_head', 'bp_core_admin_add_confirm_js' );
     413
    399414?>
  • bp-forums/bp-forums-admin.php

    function bp_forums_bbpress_admin() { 
    6060
    6161                        // Delete the bb-config.php location option
    6262                        bp_delete_option( 'bb-config-location' );
     63
     64                        // Now delete the bb-config.php file
     65                        @unlink( ABSPATH . 'bb-config.php' );
     66
     67                        // show the updated wizard
    6368                        bp_forums_bbpress_install_wizard();
    6469
    6570                else : ?>
    function bp_forums_bbpress_admin() { 
    7984                                </ul>
    8085
    8186                                <div>
    82                                         <a class="button button-primary" href="<?php echo $action ?>"><?php _e( 'Uninstall Group Forums', 'buddypress' ) ?></a> &nbsp;
     87                                        <a class="button button-primary confirm" href="<?php echo $action ?>"><?php _e( 'Uninstall Group Forums', 'buddypress' ) ?></a> &nbsp;
    8388                                </div>
    8489                        </div>
    8590