diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index fe1e74af16..5dded27306 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1012,7 +1012,7 @@ function dbDelta($queries, $execute = true) { } // For every remaining index specified for the table - foreach($indices as $index) { + 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;