Skip to:
Content

BuddyPress.org

Changeset 4258


Ignore:
Timestamp:
04/23/2011 05:04:59 PM (13 years ago)
Author:
boonebgorges
Message:

Loads BP core files when the setup wizard is finished, so that the redirect completes successfully. Fixes #3152

File:
1 edited

Legend:

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

    r4254 r4258  
    10071007            @setcookie( 'bp-wizard-step', '', time() - 3600, COOKIEPATH );
    10081008
     1009            // Load BP, so that the redirect is successful         
     1010            require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );
     1011
    10091012            // Redirect to the BuddyPress dashboard
    1010             $redirect = is_multisite() ? network_admin_url( add_query_arg( array( 'page' => 'bp-general-settings' ) ) ) : admin_url( add_query_arg( array( 'page' => 'bp-general-settings' ) ) );
     1013            $redirect = is_multisite() ? add_query_arg( array( 'page' => 'bp-general-settings' ), network_admin_url( 'admin.php' ) ) : add_query_arg( array( 'page' => 'bp-general-settings' ), admin_url( 'admin.php' ) );
    10111014
    10121015            wp_redirect( $redirect );
Note: See TracChangeset for help on using the changeset viewer.