From aea50d4b4cbc7926c53e17c117e8ad7becade4b3 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 24 Oct 2013 22:55:46 +0000 Subject: [PATCH] Use correct variable. fixes #10787. Built from https://develop.svn.wordpress.org/trunk@25843 git-svn-id: http://core.svn.wordpress.org/trunk@25843 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 01f5e596d3..39d231cf38 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1444,7 +1444,7 @@ class Core_Upgrader extends WP_Upgrader { return false; // Don't claim we can update on update-core.php if we have a non-critical failure logged. - if ( $wp_version == $failure_data['current'] && false !== strpos( $wp_version, '.1.next.minor' ) ) + if ( $wp_version == $failure_data['current'] && false !== strpos( $offered_ver, '.1.next.minor' ) ) return false; // Cannot update if we're retrying the same A to B update that caused a non-critical failure.