Changeset 26095 for trunk/tests/phpunit/includes/install.php
- Timestamp:
- 11/11/2013 10:14:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/install.php
r25002 r26095 22 22 require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 23 23 require_once ABSPATH . '/wp-includes/wp-db.php'; 24 25 define( 'WP_TESTS_VERSION_FILE', ABSPATH . '.wp-tests-version' );26 27 $wpdb->suppress_errors();28 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" );29 $wpdb->suppress_errors( false );30 31 $hash = get_option( 'db_version' ) . ' ' . (int) $multisite . ' ' . sha1_file( $config_file_path );32 33 if ( $installed && file_exists( WP_TESTS_VERSION_FILE ) && file_get_contents( WP_TESTS_VERSION_FILE ) == $hash )34 return;35 24 36 25 $wpdb->query( 'SET storage_engine = INNODB' ); … … 64 53 populate_network( 1, WP_TESTS_DOMAIN, WP_TESTS_EMAIL, $title, '/', $subdomain_install ); 65 54 } 66 67 file_put_contents( WP_TESTS_VERSION_FILE, $hash );
Note: See TracChangeset
for help on using the changeset viewer.