WordPress.org

Make WordPress Core

Ticket #21272: for-update-keys.diff

File for-update-keys.diff, 597 bytes (added by wonderboymusic, 2 years ago)
  • wp-admin/includes/upgrade.php

     
    16281628                foreach ( (array) $indices as $index ) { 
    16291629                        // Push a query line into $cqueries that adds the index to that table 
    16301630                        $cqueries[] = "ALTER TABLE {$table} ADD $index"; 
    1631                         $for_update[$table.'.'.$fieldname] = 'Added index '.$table.' '.$index; 
     1631                        $for_update[] = 'Added index '.$table.' '.$index; 
    16321632                } 
    16331633 
    16341634                // Remove the original table creation query from processing