Deprecate display_theme(). see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-03-07 18:29:36 +00:00
parent 7464fa9565
commit b1ba2dd995
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 );
}