diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 09063c209b..315efcbbed 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1401,6 +1401,7 @@ function dbDelta($queries, $execute = true) { foreach ($tables as $table) { // If a table query exists for the database table... if ( array_key_exists(strtolower($table), $cqueries) ) { + // Clear the field and index arrays $cfields = $indices = array(); // Get all of the field names in the query from between the parens preg_match("|\((.*)\)|ms", $cqueries[strtolower($table)], $match2);