Ticket #14503: 14503.diff
| File 14503.diff, 869 bytes (added by , 16 years ago) |
|---|
-
wp-admin/includes/upgrade.php
1398 1398 // Check to see which tables and fields exist 1399 1399 if ($tables = $wpdb->get_col('SHOW TABLES;')) { 1400 1400 // For every table in the database 1401 $global_tables = $wpdb->tables( 'global' ); 1401 1402 foreach ($tables as $table) { 1402 1403 // Upgrade global tables only for the main site. Don't upgrade at all if DO_NOT_UPGRADE_GLOBAL_TABLES is defined. 1403 if ( in_array( $table, $wpdb->tables('global')) && ( !is_main_site() || defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) )1404 if ( in_array( $table, $global_tables ) && ( !is_main_site() || defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) ) 1404 1405 continue; 1405 1406 1406 1407 // If a table query exists for the database table...