X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fef8173b8c3bad08f495551e43cfdeac1cae6021..9c2096d803812dacbdf6cf8efe90053e39f00b96:/wp-admin/includes/theme-install.php?ds=sidebyside diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index da7c069e..9171daba 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -172,11 +172,11 @@ function display_theme($theme, $actions = null, $show_details = true) {
-
<?php _e('5 stars') ?>
-
<?php _e('4 stars') ?>
-
<?php _e('3 stars') ?>
-
<?php _e('2 stars') ?>
-
<?php _e('1 star') ?>
+
<?php esc_attr_e('5 stars') ?>
+
<?php esc_attr_e('4 stars') ?>
+
<?php esc_attr_e('3 stars') ?>
+
<?php esc_attr_e('2 stars') ?>
+
<?php esc_attr_e('1 star') ?>
download_link) ) { - echo '

' . __('Error: This theme is currently not available. Please try again later.') . '

'; + echo '

' . __('ERROR: This theme is currently not available. Please try again later.') . '

'; iframe_footer(); exit; } @@ -262,7 +262,7 @@ function install_theme_information() { } $themes = get_themes(); - foreach ( $themes as $this_theme ) { + foreach ( (array) $themes as $this_theme ) { if ( is_array($this_theme) && $this_theme['Stylesheet'] == $api->slug ) { if ( $this_theme['Version'] == $api->version ) { $type = 'latest_installed';