From ff1bf05b695f7b89927ce108d4ff7401fc23abbc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 5 Jul 2020 11:55:14 +0000 Subject: [PATCH] Administration: Bring the update nag in line with other admin notices. In addition to more consistent display, this gives it a visible border on the About page. Props desrosj, nikhilbhansi, afercia, SergeyBiryukov. Fixes #50372. git-svn-id: https://develop.svn.wordpress.org/trunk@48316 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 4 ---- src/wp-admin/includes/ms.php | 2 +- src/wp-admin/includes/update.php | 5 +++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 022a276bb7..095593590f 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1566,11 +1566,7 @@ div.error { line-height: 1.4; padding: 11px 15px; font-size: 14px; - text-align: left; margin: 25px 20px 0 2px; - background-color: #fff; - border-left: 4px solid #ffba00; - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); } ul#dismissed-updates { diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index a1548f9bb0..6a2efa23b7 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -703,7 +703,7 @@ function site_admin_notice() { } if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) { - echo "
" . sprintf( + echo "
" . sprintf( /* translators: %s: URL to Upgrade Network screen. */ __( 'Thank you for Updating! Please visit the Upgrade Network page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 92a14dc61f..0d9fab024b 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -318,7 +318,8 @@ function update_nag() { $cur->current ); } - echo "
$msg
"; + + echo "
$msg
"; } /** @@ -764,7 +765,7 @@ function maintenance_nag() { $msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' ); } - echo "
$msg
"; + echo "
$msg
"; } /**