From 78f8c980da368145cd7006e050696855998d02e1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 29 Oct 2013 13:45:17 +0000 Subject: [PATCH] Use correct variable in WP_Automatic_Updater::send_email(). props pento. see #25757 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@25977 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 891a4e8953..90b9658d57 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -2135,7 +2135,7 @@ class WP_Automatic_Updater { // If the update transient is empty, use the update we just performed if ( ! $next_user_core_update ) $next_user_core_update = $core_update; - $newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update, '>' ) ); + $newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update->version, '>' ) ); /** * Filter whether to send an email following an automatic background core update.