Changeset 18522
- Timestamp:
- 08/10/2011 07:00:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r16959 r18522 1407 1407 if ($tables = $wpdb->get_col('SHOW TABLES;')) { 1408 1408 // For every table in the database 1409 $global_tables = $wpdb->tables( 'global' ); 1409 1410 foreach ($tables as $table) { 1410 1411 // Upgrade global tables only for the main site. Don't upgrade at all if DO_NOT_UPGRADE_GLOBAL_TABLES is defined. 1411 if ( in_array( $table, $wpdb->tables('global')) && ( !is_main_site() || defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) )1412 if ( in_array( $table, $global_tables ) && ( !is_main_site() || defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) ) 1412 1413 continue; 1413 1414
Note: See TracChangeset
for help on using the changeset viewer.