diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 9c5149f457..f0d4af3c97 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -275,6 +275,8 @@ function install_themes_upload($page = 1) { function display_theme($theme, $actions = null, $show_details = true) { global $themes_allowedtags; + if ( empty($theme) ) + return; //var_dump($theme); $name = wp_kses($theme->name, $themes_allowedtags);