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:
parent
6ce7b43cbd
commit
f5c7db0844
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user