Make WordPress Core

Changeset 26566


Ignore:
Timestamp:
12/03/2013 05:43:52 PM (11 years ago)
Author:
nacin
Message:

In dbDelta(), ensure we are not running CREATE TABLE queries for global tables we wish to not upgrade.

props fliespl.
fixes #22134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r26252 r26566  
    15501550    foreach ( $cqueries as $table => $qry ) {
    15511551        // Upgrade global tables only for the main site. Don't upgrade at all if DO_NOT_UPGRADE_GLOBAL_TABLES is defined.
    1552         if ( in_array( $table, $global_tables ) && ( !is_main_site() || defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) )
     1552        if ( in_array( $table, $global_tables ) && ( !is_main_site() || defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) ) {
     1553            unset( $cqueries[ $table ], $for_update[ $table ] );
    15531554            continue;
     1555        }
    15541556
    15551557        // Fetch the table column structure from the database
Note: See TracChangeset for help on using the changeset viewer.