From 292f1e5f79c4ef8a7dd959afe8acc4a48e398e64 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 7 Mar 2012 18:29:36 +0000 Subject: [PATCH] Deprecate display_theme(). see #19910. git-svn-id: http://svn.automattic.com/wordpress/trunk@20141 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-theme-install-list-table.php | 9 ++------- wp-admin/includes/theme-install.php | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) 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 ); }