Changeset 5439
- Timestamp:
- 12/04/2011 06:21:58 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r5406 r5439 1134 1134 1135 1135 // Redirect to the BuddyPress dashboard 1136 $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp-general-config' ), network_admin_url( ' admin.php' ) ) : add_query_arg( array( 'page' => 'bp-general-config' ), admin_url( 'admin.php' ) );1136 $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp-general-config' ), network_admin_url( 'settings.php' ) ) : add_query_arg( array( 'page' => 'bp-general-config' ), admin_url( 'options-general.php' ) ); 1137 1137 1138 1138 wp_redirect( $redirect ); -
trunk/bp-loader.php
r5411 r5439 431 431 $versions = array(); 432 432 $versions['1.2'] = get_site_option( 'bp-core-db-version' ); 433 $versions['1.5-single'] = get_site_option( 'bp-db-version' ); 434 $versions['1.5-multi'] = get_option ( 'bp-db-version' ); 435 $versions['1.6'] = get_option ( '_bp_db_version' ); 433 $versions['1.5-multi'] = get_site_option( 'bp-db-version' ); 434 $versions['1.5-single'] = get_option ( 'bp-db-version' ); 435 $versions['1.6-multi'] = get_site_option( '_bp_db_version' ); 436 $versions['1.6-single'] = get_option ( '_bp_db_version' ); 436 437 437 438 // Remove empty array items … … 441 442 $this->db_version_raw = !empty( $versions ) ? (int) max( $versions ) : 0; 442 443 443 // Are we network activated? 444 if ( is_multisite() && empty( $versions['1.5-multi'] ) ) 444 // Is this an upgrade to WordPress Network Mode? 445 // We know by checking to see whether the db version is saved in sitemeta 446 if ( is_multisite() && ( empty( $versions['1.5-multi'] ) && empty( $versions['1.6-multi'] ) ) ) 445 447 $this->is_network_activate = true; 446 448
Note: See TracChangeset
for help on using the changeset viewer.