diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 47070cc756..4a9cfbc203 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -502,7 +502,8 @@ function wp_prepare_themes_for_js( $themes = null ) { * @param array $prepared_themes Array of themes. */ $prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes ); - return array_values( $prepared_themes ); + $prepared_themes = array_values( $prepared_themes ); + return array_filter( $prepared_themes ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 03cb98bb3c..10ce2e0f09 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-RC3-32261'; +$wp_version = '4.2-RC3-32264'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.