Use array_filter() to remove empty values from an array, not jankiness.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-01-05 21:22:44 +00:00
parent c94b474b17
commit 277a8131d2
1 changed files with 1 additions and 1 deletions

View File

@ -1453,7 +1453,7 @@ function dbDelta( $queries = '', $execute = true ) {
// Separate individual queries into an array
if ( !is_array($queries) ) {
$queries = explode( ';', $queries );
if ('' == $queries[count($queries) - 1]) array_pop($queries);
$queries = array_filter( $queries );
}
$queries = apply_filters( 'dbdelta_queries', $queries );