WordPress.org

Make WordPress Core

Ticket #21272: 21272.diff

File 21272.diff, 603 bytes (added by wonderboymusic, 5 years ago)
  • wp-admin/includes/upgrade.php

     
    16421642                foreach ( (array) $indices as $index ) {
    16431643                        // Push a query line into $cqueries that adds the index to that table
    16441644                        $cqueries[] = "ALTER TABLE {$table} ADD $index";
    1645                         $for_update[$table.'.'.$fieldname] = 'Added index '.$table.' '.$index;
     1645                        $for_update[] = 'Added index ' . $table . ' ' . $index;
    16461646                }
    16471647
    16481648                // Remove the original table creation query from processing