WordPress.org

Make WordPress Core

Ticket #20634: upgrade_1571.patch

File upgrade_1571.patch, 966 bytes (added by SidHarrell, 6 years ago)
  • upgrade.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /home/sidney/NetBeansProjects/trunk_project/EE_trunk/wp-admin/includes
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    15681568                        case 'unique':
    15691569                        case 'key':
    15701570                                $validfield = false;
    1571                                 $indices[] = trim(trim($fld), ", \n");
     1571                                $indices[] = str_replace('  ', ' ', trim(trim($fld), ", \n"));
    15721572                                break;
    15731573                        }
    15741574                        $fld = trim($fld);
     
    16481648                                if ($index_name != 'PRIMARY') {
    16491649                                        $index_string .= $index_name;
    16501650                                }
     1651                                $index_string = rtrim($index_string);
    16511652                                $index_columns = '';
    16521653                                // For each column in the index
    16531654                                foreach ($index_data['columns'] as $column_data) {