Changeset 33058 for trunk/src/wp-admin/includes/upgrade.php
- Timestamp:
- 07/03/2015 05:43:28 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r33057 r33058 1515 1515 } else { 1516 1516 $tables = $wpdb->tables( 'all' ); 1517 if ( ! wp_should_upgrade_global_tables() ) { 1518 $global_tables = $wpdb->tables( 'global' ); 1519 $tables = array_diff_assoc( $tables, $global_tables ); 1520 } 1517 1521 } 1518 1522 … … 2635 2639 // Upgrade versions prior to 4.2. 2636 2640 if ( $wp_current_db_version < 31351 ) { 2637 if ( wp_should_upgrade_global_tables() ) {2641 if ( ! is_multisite() && wp_should_upgrade_global_tables() ) { 2638 2642 $wpdb->query( "ALTER TABLE $wpdb->usermeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" ); 2639 2643 } … … 2712 2716 2713 2717 /** 2714 * Filter if upgrade routines should be run on global tables in multisite.2718 * Filter if upgrade routines should be run on global tables. 2715 2719 * 2716 2720 * @param bool $should_upgrade Whether to run the upgrade routines on global tables.
Note: See TracChangeset
for help on using the changeset viewer.