mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
7464fa9565
commit
b1ba2dd995
@ -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.
|
||||
*
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user