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
git-svn-id: https://develop.svn.wordpress.org/trunk@26186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3f6c11bf0a
commit
8c01596a75
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user