Deprecate display_theme(). see #19910.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-03-07 18:29:36 +00:00
parent fba11c56e1
commit 292f1e5f79
2 changed files with 5 additions and 10 deletions

View File

@ -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 ) {
?>
<div class="available-theme installable-theme"><?php
if ( isset( $themes[$theme_name] ) )
display_theme( $themes[$theme_name] );
$this->single_row( $theme );
?></div>
<?php } // end foreach $theme_names
$this->theme_installer();
}
/*
* Prints a theme from the WordPress.org API.
*

View File

@ -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 );
}