From 71fb0d40d90d1e48cefc2731864a0c6c3bbe8d23 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 4 Mar 2012 13:03:48 +0000 Subject: [PATCH] Use new WP_Theme API in list_theme_updates(). fixes #20173. see #20103. git-svn-id: http://svn.automattic.com/wordpress/trunk@20113 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 701a66034a..7a0f73ddf2 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -311,13 +311,11 @@ function list_theme_updates() { $theme_data) { - $screenshot = $theme_data->{'Theme Root URI'} . '/' . $stylesheet . '/' . $theme_data->Screenshot; - + foreach ( $themes as $stylesheet => $theme ) { echo " - - {$theme_data->Name}" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . " + + " . $theme->display('Name') . ' ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . " "; } ?>