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:
parent
cc8a9824c5
commit
ca11d4c876
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user