Ticket #15948: 15948.diff

File 15948.diff, 681 bytes (added by wonderboymusic, 4 months ago)
  • wp-admin/includes/upgrade.php

     
    15661566 
    15671567                                // Get the default value from the array 
    15681568                                        //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)) { 
    15701570                                        $default_value = $matches[1]; 
    15711571                                        if ($tablefield->Default != $default_value) { 
    15721572                                                // Add a query to change the column's default value