Changeset 7849 for trunk/tests/includes/install.php
- Timestamp:
- 02/11/2014 05:27:43 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/includes/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/install.php
r7693 r7849 39 39 echo "Installing BuddyPress...\n"; 40 40 41 // Make sure that BP has been cleaned from all blogs before reinstalling42 $blogs = is_multisite() ? $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ) : array( 1 );43 foreach ( $blogs as $blog ) {44 if ( is_multisite() ) {45 switch_to_blog( $blog );46 }47 48 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '%bp%'" );49 50 if ( is_multisite() ) {51 restore_current_blog();52 }53 }54 55 41 $wpdb->query( 'SET storage_engine = INNODB' ); 56 42 $wpdb->select( DB_NAME, $wpdb->dbh );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)