Index: wp-admin/includes/upgrade.php =================================================================== --- wp-admin/includes/upgrade.php (revision 10284) +++ wp-admin/includes/upgrade.php (working copy) @@ -1119,8 +1119,9 @@ // Create a tablename index for an array ($cqueries) of queries foreach($queries as $qry) { if(preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) { - $cqueries[strtolower($matches[1])] = $qry; - $for_update[$matches[1]] = 'Created table '.$matches[1]; + $table_name = str_replace('`','', $matches[1]); //Make sure it work if the table names have the ` style quoting + $cqueries[strtolower($table_name)] = $qry; + $for_update[$table_name] = 'Created table '.$table_name; } else if(preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches)) { array_unshift($cqueries, $qry); @@ -1158,8 +1159,9 @@ foreach($flds as $fld) { // Extract the field name preg_match("|^([^ ]*)|", trim($fld), $fvals); - $fieldname = $fvals[1]; - + $fieldname = str_replace('`','', $fvals[1]); + $fld = preg_replace("/`([^` ]+)`/", "$1", $fld); + // Verify the found field name $validfield = true; switch(strtolower($fieldname))