Highlight correct submenu for Theme Installs. Fix PHP Notice for unset object properties (requires among others may not be set).
git-svn-id: https://develop.svn.wordpress.org/trunk@13763 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
13facc3c4c
commit
12c0c3d475
@ -455,8 +455,11 @@ function install_theme_information() {
|
|||||||
// Sanitize HTML
|
// Sanitize HTML
|
||||||
foreach ( (array)$api->sections as $section_name => $content )
|
foreach ( (array)$api->sections as $section_name => $content )
|
||||||
$api->sections[$section_name] = wp_kses($content, $themes_allowedtags);
|
$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') );
|
iframe_header( __('Theme Install') );
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ if ( isset($_GET['action']) ) {
|
|||||||
wp_enqueue_script('theme-preview');
|
wp_enqueue_script('theme-preview');
|
||||||
$title = __('Install Themes');
|
$title = __('Install Themes');
|
||||||
$parent_file = 'themes.php';
|
$parent_file = 'themes.php';
|
||||||
$submenu_file = 'theme-install.php';
|
$submenu_file = 'themes.php';
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
|
||||||
$title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
|
$title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
|
||||||
|
Loading…
Reference in New Issue
Block a user