Changeset 7693
- Timestamp:
- 12/17/2013 06:47:59 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/includes/install.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/install.php
r7521 r7693 36 36 37 37 require_once ABSPATH . '/wp-settings.php'; 38 define( 'BP_TESTS_DB_VERSION_FILE', ABSPATH . '.bp-tests-version' );39 40 // Check if BuddyPress has already been installed41 $db_version = buddypress()->db_version;42 $hash = $db_version . ' ' . (int) $multisite . ' ' . sha1_file( $config_file_path );43 44 if ( $db_version && file_exists( BP_TESTS_DB_VERSION_FILE ) ) {45 $version_file = file_get_contents( BP_TESTS_DB_VERSION_FILE );46 47 if ( $hash === $version_file ) {48 return;49 }50 }51 38 52 39 echo "Installing BuddyPress...\n"; … … 71 58 // Install BuddyPress 72 59 bp_version_updater(); 73 74 file_put_contents( BP_TESTS_DB_VERSION_FILE, $hash );
Note: See TracChangeset
for help on using the changeset viewer.