diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
index 087d314fc6..9a5c41e37d 100644
a
|
b
|
function list_core_update( $update ) { |
37 | 37 | global $wp_local_package, $wpdb; |
38 | 38 | static $first_pass = true; |
39 | 39 | |
| 40 | if ( ! is_object( $update ) ) { |
| 41 | return; |
| 42 | } |
| 43 | |
40 | 44 | $wp_version = get_bloginfo( 'version' ); |
41 | 45 | $version_string = sprintf( '%s–%s', $update->current, get_locale() ); |
42 | 46 | |
… |
… |
function core_upgrade_preamble() { |
275 | 279 | echo '<h2 class="response">' . __( 'You have the latest version of WordPress.' ) . '</h2>'; |
276 | 280 | } |
277 | 281 | |
278 | | echo '<ul class="core-updates">'; |
279 | | foreach ( (array) $updates as $update ) { |
280 | | echo '<li>'; |
281 | | list_core_update( $update ); |
282 | | echo '</li>'; |
| 282 | if ( $updates ) { |
| 283 | echo '<ul class="core-updates">'; |
| 284 | foreach ( (array) $updates as $update ) { |
| 285 | echo '<li>'; |
| 286 | list_core_update( $update ); |
| 287 | echo '</li>'; |
| 288 | } |
| 289 | echo '</ul>'; |
283 | 290 | } |
284 | | echo '</ul>'; |
285 | 291 | |
286 | 292 | // Don't show the maintenance mode notice when we are only showing a single re-install option. |
287 | 293 | if ( $updates && ( count( $updates ) > 1 || 'latest' !== $updates[0]->response ) ) { |