WordPress.org

Make WordPress Core

Changeset 19691


Ignore:
Timestamp:
01/05/2012 09:22:44 PM (6 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r19690 r19691  
    14541454    if ( !is_array($queries) ) {
    14551455        $queries = explode( ';', $queries );
    1456         if ('' == $queries[count($queries) - 1]) array_pop($queries);
     1456        $queries = array_filter( $queries );
    14571457    }
    14581458    $queries = apply_filters( 'dbdelta_queries', $queries );
Note: See TracChangeset for help on using the changeset viewer.