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
This commit is contained in:
nacin 2012-03-04 13:03:48 +00:00
parent 1b84ec82cb
commit 71fb0d40d9
1 changed files with 3 additions and 5 deletions

View File

@ -311,13 +311,11 @@ function list_theme_updates() {
</tfoot>
<tbody class="plugins">
<?php
foreach ( (array) $themes as $stylesheet => $theme_data) {
$screenshot = $theme_data->{'Theme Root URI'} . '/' . $stylesheet . '/' . $theme_data->Screenshot;
foreach ( $themes as $stylesheet => $theme ) {
echo "
<tr class='active'>
<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($stylesheet) . "' /></th>
<td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>
<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr( $stylesheet ) . "' /></th>
<td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . "</td>
</tr>";
}
?>