Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/17/2012 08:43:45 PM (12 years ago)
Author:
djpaul
Message:

Update the updater to better handle switching from BP 1.5 to 1.6. See #4005.
Fixes a problem where after completing the DB update screen, all of the 'new
install' tabs were shown instead only the tabs relevant to the update.

File:
1 edited

Legend:

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

    r6092 r6105  
    6565        } else {
    6666
    67             if ( bp_get_db_version_raw() < (int) bp_get_db_version() ) {
    68                 $steps[] = __( 'Database Update', 'buddypress' );
    69             }
    70 
    7167            // New for BP 1.5
    7268            if ( bp_get_db_version_raw() < 1801 || !bp_core_get_directory_page_ids() ) {
     
    7672
    7773            // New for BP 1.6
    78             if ( bp_get_db_version_raw() < 5222 && !defined( 'BP_USE_WP_ADMIN_BAR' ) ) {
     74            if ( bp_get_db_version_raw() < 5222 && !defined( 'BP_USE_WP_ADMIN_BAR' ) )
    7975                $steps[] = __( 'Toolbar', 'buddypress' );
    80             }
     76
     77            if ( bp_get_db_version_raw() < (int) bp_get_db_version() )
     78                $steps[] = __( 'Database Update', 'buddypress' );
    8179
    8280            $steps[] = __( 'Finish', 'buddypress' );
     
    238236    ?>
    239237
    240         <p><?php _e( 'Before you can continue using BuddyPress, a few minor adjustments need to be made. These changes are not destructive and will not remove or change any existing settings.', 'buddypress' ); ?></p>
     238        <p><?php _e( 'To complete the update, a few changes need to be made to your database. These changes are not destructive and will not remove or change any existing settings.', 'buddypress' ); ?></p>
    241239
    242240        <div class="submit clear">
     
    661659    ?>
    662660
    663         <p><?php _e( "BuddyPress now uses WordPress' Toolbar; this sits at the top of your site and contains various links to useful admin screens. We've turbo-charged the Toolbar by adding social items to help your users explore your site, and manage their content.", 'buddypress' ); ?></p>
     661        <p><?php _e( "BuddyPress now uses the WordPress Toolbar; we've turbo-charged it by adding social items to help your users explore your site and manage their content.", 'buddypress' ); ?></p>
    664662
    665663        <p><?php _e( "We've noticed that your site uses the old bar from earlier versions of BuddyPress.", 'buddypress' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.