mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-28 00:14:27 +00:00
Don't return empty themes in wp_prepare_themes_for_js().
see #32002. git-svn-id: https://develop.svn.wordpress.org/trunk@32264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user