diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 5ab813df35..a63a37a261 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -131,7 +131,7 @@ function dismissed_updates() { * @return null */ function core_upgrade_preamble() { - global $upgrade_error; + global $upgrade_error, $wp_version; $updates = get_core_updates(); ?> @@ -176,7 +176,12 @@ function core_upgrade_preamble() { echo ''; } echo ''; - echo '
' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '
'; + if ( $updates ) { + echo '' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '
'; + } else { + list( $normalized_version ) = explode( '-', $wp_version ); + echo '' . sprintf( __( 'Learn more about WordPress %s.' ), esc_url( admin_url( 'about.php' ) ), $normalized_version ) . '
'; + } dismissed_updates(); if ( current_user_can( 'update_plugins' ) )