Don't display empty theme. see #8652

git-svn-id: http://svn.automattic.com/wordpress/trunk@10669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-02-27 21:24:19 +00:00
parent 0e3ffd1095
commit ba14664d1e

View File

@ -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);