Changeset 4203 for trunk/bp-loader.php
- Timestamp:
- 04/14/2011 01:36:19 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r4030 r4203 57 57 58 58 // Test to see whether this is a new installation or an upgraded version of BuddyPress 59 if ( !$bp->database_version = get_site_option( 'bp-db-version' ) ) 60 $bp->database_version = get_site_option( 'bp-core-db-version' ); // BP 1.2 option name 59 if ( !$bp->database_version = get_site_option( 'bp-db-version' ) ) { 60 if ( $bp->database_version = get_option( 'bp-db-version' ) ) { 61 $bp->is_ms_activate = 1; 62 } else { 63 $bp->database_version = get_site_option( 'bp-core-db-version' ); // BP 1.2 option 64 } 65 } 61 66 62 67 // This is a new installation. … … 71 76 72 77 // Check if an update is required 73 if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) ) {78 if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_ms_activate ) ) { 74 79 $bp->maintenence_mode = 'update'; 75 80 require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );
Note: See TracChangeset
for help on using the changeset viewer.