mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
0e3ffd1095
commit
ba14664d1e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user