diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index dda925e..ef87f77 100644
a
|
b
|
function dbDelta( $queries = '', $execute = true ) { |
1645 | 1645 | |
1646 | 1646 | // Create a tablename index for an array ($cqueries) of queries |
1647 | 1647 | foreach($queries as $qry) { |
1648 | | if (preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) { |
| 1648 | if (preg_match("|CREATE TABLE ([^ ]*)|i", $qry, $matches)) { |
1649 | 1649 | $cqueries[ trim( $matches[1], '`' ) ] = $qry; |
1650 | 1650 | $for_update[$matches[1]] = 'Created table '.$matches[1]; |
1651 | | } else if (preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches)) { |
| 1651 | } else if (preg_match("|CREATE DATABASE ([^ ]*)|i", $qry, $matches)) { |
1652 | 1652 | array_unshift($cqueries, $qry); |
1653 | | } else if (preg_match("|INSERT INTO ([^ ]*)|", $qry, $matches)) { |
| 1653 | } else if (preg_match("|INSERT INTO ([^ ]*)|i", $qry, $matches)) { |
1654 | 1654 | $iqueries[] = $qry; |
1655 | | } else if (preg_match("|UPDATE ([^ ]*)|", $qry, $matches)) { |
| 1655 | } else if (preg_match("|UPDATE ([^ ]*)|i", $qry, $matches)) { |
1656 | 1656 | $iqueries[] = $qry; |
1657 | 1657 | } else { |
1658 | 1658 | // Unrecognized query type |