Changeset 5754 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 02/13/2012 05:04:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r5749 r5754 1 1 <?php 2 2 3 // Exit if accessed directly 3 4 if ( !defined( 'ABSPATH' ) ) exit; … … 19 20 20 21 function __construct() { 21 22 // Ensure that we have access to some utility functions. Must use require_once()23 // because BP Core is loaded during incremental upgrades24 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );25 22 26 23 // Set/reset the wizard cookie … … 55 52 $steps = array(); 56 53 54 // This is a first time installation 57 55 if ( bp_get_maintenance_mode() == 'install' ) { 58 56 $steps = array( … … 64 62 ); 65 63 66 // Update wizard steps64 // This is an update to an existing install 67 65 } else { 68 66 69 if ( bp_get_db_version_raw() < (int) bp_get_db_version() ) 67 if ( bp_get_db_version_raw() < (int) bp_get_db_version() ) { 70 68 $steps[] = __( 'Database Update', 'buddypress' ); 69 } 71 70 72 71 // New for BP 1.5 … … 77 76 78 77 // New for BP 1.6 79 if ( bp_get_db_version_raw() < 5222 && !defined( 'BP_USE_WP_ADMIN_BAR' ) ) 78 if ( bp_get_db_version_raw() < 5222 && !defined( 'BP_USE_WP_ADMIN_BAR' ) ) { 80 79 $steps[] = __( 'Admin Bar', 'buddypress' ); 80 } 81 81 82 82 $steps[] = __( 'Finish', 'buddypress' ); … … 962 962 963 963 // Update the DB version in the database 964 // Stored in sitemeta. Do not use bp_update_option() 965 update_blog_option( bp_get_root_blog_id(), '_bp_db_version', bp_get_db_version() ); 964 bp_version_bump(); 966 965 967 966 // Delete the setup cookie
Note: See TracChangeset
for help on using the changeset viewer.