Send back the original WP version after successful updates
|Reported by:||nacin||Owned by:||nacin|
|Component:||Upgrade/Install||Keywords:||has-patch commit fixed-major|
After an update, wp_version_check() is used to refresh the update transient and some basic metrics. We were using the 'version' sent in wp_version_check() to figure out what version the user tried to update from. However, on a successful update, version.php is updated, so the internal inclusion in wp_version_check() gets the newer data. Thus many successes are showing up as successful 3.7.1 => 3.7.1 updates.
We should send back a 'reported' version in addition to 'attempted'.