From 627b25bf50252d5f701c4146861a5d32872b4754 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 10 Oct 2013 14:45:55 +0000 Subject: [PATCH] Auto updates: For follow-up API call when an update fails, send back the version attempted. see #22704. git-svn-id: https://develop.svn.wordpress.org/trunk@25755 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 26020f1843..368338185a 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -1740,6 +1740,7 @@ class WP_Automatic_Upgrader { } $extra_update_stats['fs_method'] = $GLOBALS['wp_filesystem']->method; $extra_update_stats['time_taken'] = ( time() - $start_time ); + $extra_update_stats['attempted'] = $core_update->version; } // Cleanup, and check for any pending translations