From f5c7db084422d8266f6a8813d9095d3c2ba03e34 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 27 Feb 2009 21:24:19 +0000 Subject: [PATCH] Don't display empty theme. see #8652 git-svn-id: https://develop.svn.wordpress.org/trunk@10669 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/theme-install.php | 2 ++ 1 file changed, 2 insertions(+) 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);