Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/25/2012 11:22:13 PM (12 years ago)
Author:
djpaul
Message:

Fixes a bug introduced in r6672 where the schema of old tables was not being updated on upgrades from early versions of BuddyPress. Antiprops DJPaul. See #4733, #4671.

File:
1 edited

Legend:

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

    r6672 r6673  
    177177    $raw_db_version = (int) bp_get_db_version_raw();
    178178
     179    require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-schema.php' );
     180
    179181    // Install BP schema and activate only Activity and XProfile
    180182    if ( bp_is_install() ) {
    181 
    182         require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-schema.php' );
    183183
    184184        $default_components = apply_filters( 'bp_new_install_default_components', array( 'activity' => 1, 'xprofile' => 1, ) );
     
    188188    // Upgrades
    189189    } else {
     190
     191        // Run the schema install to update tables
     192        bp_core_install();
    190193
    191194        // 1.5
Note: See TracChangeset for help on using the changeset viewer.