Avoid possible array collision in dbDelta when recording index adds. props apimlott, wonderboymusic. fixes #21272.

git-svn-id: https://develop.svn.wordpress.org/trunk@24584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-07-08 13:54:19 +00:00
parent 1c76a5218c
commit bcf8ba4d44
1 changed files with 1 additions and 1 deletions

View File

@ -1652,7 +1652,7 @@ function dbDelta( $queries = '', $execute = true ) {
foreach ( (array) $indices as $index ) {
// Push a query line into $cqueries that adds the index to that table
$cqueries[] = "ALTER TABLE {$table} ADD $index";
$for_update[$table.'.'.$fieldname] = 'Added index '.$table.' '.$index;
$for_update[] = 'Added index ' . $table . ' ' . $index;
}
// Remove the original table creation query from processing