From 8d65f7dc7c226c9951a99854b66b60ad8b400cbc Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 15 Nov 2013 02:31:11 +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. Props SergeyBiryukov. Fixes #25887 for trunk Built from https://develop.svn.wordpress.org/trunk@26186 git-svn-id: http://core.svn.wordpress.org/trunk@26095 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index feafd94b87..5ee195a79f 100644 --- a/wp-admin/includes/update.php +++ b/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; }