From 6ed90e31ac074b55201123433cf690d9107872bb Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 1 Apr 2014 03:30:13 +0000 Subject: [PATCH] Updates: When a failed Background Update occurs, only show the failed update nag if the user hasn't yet updated if it was an early abort. Merges [26186] from 3.8 to the 3.7 branch. props SergeyBiryukov. fixes #25887. git-svn-id: https://develop.svn.wordpress.org/branches/3.7@27884 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index feafd94b87..5ee195a79f 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -364,7 +364,7 @@ function maintenance_nag() { * This flag is cleared whenever a successful update occurs using Core_Upgrader. */ $comparison = ! empty( $failed['critical'] ) ? '>=' : '>'; - if ( version_compare( $failed['attempted'], $wp_version, '>=' ) ) + if ( version_compare( $failed['attempted'], $wp_version, $comparison ) ) $nag = true; }