From 21dd77dbe283ab22ace1ee8a238ed84b5223f092 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@20113 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'] ) . " "; } ?>