diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 4f9f3384f8..2957d52ca1 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1566,7 +1566,7 @@ function dbDelta( $queries = '', $execute = true ) { // Get the default value from the array //echo "{$cfields[strtolower($tablefield->Field)]}
"; - if (preg_match("| DEFAULT '(.*)'|i", $cfields[strtolower($tablefield->Field)], $matches)) { + if (preg_match("| DEFAULT '(.*?)'|i", $cfields[strtolower($tablefield->Field)], $matches)) { $default_value = $matches[1]; if ($tablefield->Default != $default_value) { // Add a query to change the column's default value