diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 7d5436ec3..f7256061b 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -455,8 +455,11 @@ function install_theme_information() { // Sanitize HTML foreach ( (array)$api->sections as $section_name => $content ) $api->sections[$section_name] = wp_kses($content, $themes_allowedtags); - foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) - $api->$key = wp_kses($api->$key, $themes_allowedtags); + + foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) { + if ( isset($api->$key) ) + $api->$key = wp_kses($api->$key, $themes_allowedtags); + } iframe_header( __('Theme Install') ); diff --git a/wp-admin/update.php b/wp-admin/update.php index 43f6e13f8..aa1a7bf0c 100644 --- a/wp-admin/update.php +++ b/wp-admin/update.php @@ -205,7 +205,7 @@ if ( isset($_GET['action']) ) { wp_enqueue_script('theme-preview'); $title = __('Install Themes'); $parent_file = 'themes.php'; - $submenu_file = 'theme-install.php'; + $submenu_file = 'themes.php'; require_once('admin-header.php'); $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );