Make WordPress Core


Ignore:
Timestamp:
05/02/2012 09:19:37 PM (13 years ago)
Author:
nacin
Message:

Do not force table names to be lowercase in dbDelta, as this breaks sites using capital letters in table prefixes. props netweblogic. fixes #19748.

File:
1 edited

Legend:

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

    r20287 r20704  
    15131513    foreach($queries as $qry) {
    15141514        if (preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) {
    1515             $cqueries[trim( strtolower($matches[1]), '`' )] = $qry;
     1515            $cqueries[ trim( $matches[1], '`' ) ] = $qry;
    15161516            $for_update[$matches[1]] = 'Created table '.$matches[1];
    15171517        } else if (preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches)) {
Note: See TracChangeset for help on using the changeset viewer.