From 0fccb7b64d0de8129e582bc719f0b24905203e0f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Mar 2014 14:35:23 +0000 Subject: [PATCH] Restore the update message in the dashboard, removed in 3.8. props obenland. fixes #26664. git-svn-id: https://develop.svn.wordpress.org/trunk@27711 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/dashboard.css | 8 ++++++++ src/wp-admin/includes/dashboard.php | 2 +- src/wp-admin/includes/update.php | 9 +++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 612c45e30b..5a2ff260de 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -362,6 +362,7 @@ div.dashboard-widget-notice { } #dashboard_right_now .main { + overflow: hidden; padding: 0 12px 11px; } @@ -369,6 +370,13 @@ div.dashboard-widget-notice { margin: 0; } +#dashboard_right_now #wp-version-message .button { + clear: right; + float: right; + position: relative; + top: -5px; +} + .mu-storage { overflow: hidden; } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 75285f8c7c..5851e11e0a 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -281,8 +281,8 @@ function wp_dashboard_right_now() { ?> -

WordPress %s.' ), get_bloginfo( 'version', 'display' ) ); + $theme_name = wp_get_theme(); + if ( current_user_can( 'switch_themes' ) ) { + $theme_name = sprintf( '%1$s', $theme_name ); + } + + $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); if ( current_user_can('update_core') ) { $cur = get_preferred_from_update_core(); @@ -230,7 +235,7 @@ function update_right_now_message() { $msg .= " " . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . ''; } - echo "$msg"; + echo "

$msg

"; } function get_plugin_updates() {