diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index 7c66c88c4..578935b88 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -148,21 +148,16 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
function display_rows() {
$themes = $this->items;
- $theme_names = array_keys( $themes );
-
- foreach ( $theme_names as $theme_name ) {
+ foreach ( $themes as $theme ) {
?>
single_row( $theme );
?>
theme_installer();
}
-
-
/*
* Prints a theme from the WordPress.org API.
*
diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php
index 7c7a4e77e..39e5188a2 100644
--- a/wp-admin/includes/theme-install.php
+++ b/wp-admin/includes/theme-install.php
@@ -127,14 +127,14 @@ function install_themes_upload($page = 1) {
}
add_action('install_themes_upload', 'install_themes_upload', 10, 1);
-/*
+/**
* Prints a theme on the Install Themes pages.
*
- * @param object $theme An object that contains theme data returned by the WordPress.org API.
+ * @deprecated 3.4.0
*/
function display_theme( $theme ) {
+ _deprecated_function( __FUNCTION__, '3.4' );
global $wp_list_table;
-
return $wp_list_table->single_row( $theme );
}