Ticket #15948: 15948.diff
File 15948.diff, 681 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/upgrade.php
1566 1566 1567 1567 // Get the default value from the array 1568 1568 //echo "{$cfields[strtolower($tablefield->Field)]}<br>"; 1569 if (preg_match("| DEFAULT '( .*)'|i", $cfields[strtolower($tablefield->Field)], $matches)) {1569 if (preg_match("| DEFAULT '([^']*)'|i", $cfields[strtolower($tablefield->Field)], $matches)) { 1570 1570 $default_value = $matches[1]; 1571 1571 if ($tablefield->Default != $default_value) { 1572 1572 // Add a query to change the column's default value