Don't display empty theme. see #8652

git-svn-id: https://develop.svn.wordpress.org/trunk@10669 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-27 21:24:19 +00:00
parent 6ce7b43cbd
commit f5c7db0844

View File

@ -275,6 +275,8 @@ function install_themes_upload($page = 1) {
function display_theme($theme, $actions = null, $show_details = true) { function display_theme($theme, $actions = null, $show_details = true) {
global $themes_allowedtags; global $themes_allowedtags;
if ( empty($theme) )
return;
//var_dump($theme); //var_dump($theme);
$name = wp_kses($theme->name, $themes_allowedtags); $name = wp_kses($theme->name, $themes_allowedtags);