Use correct variable in WP_Automatic_Updater::send_email().

Merges [25977] to the 3.7 branch and adds an inline comment.

props pento.
see #25757.


git-svn-id: https://develop.svn.wordpress.org/branches/3.7@25981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-29 17:14:06 +00:00
parent a3c9fa1f87
commit ae4abe9d19

View File

@ -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.