From 02f200df1dfe7d55b0f2c497e0b2d4f808316a71 Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 20 Jul 2020 18:28:03 +0000 Subject: [PATCH] Administration: Include the new plugin and theme versions in email notifications. This helps administrators keep track of which versions of plugins and themes are running on their site when auto-updates occur. Props audrasjb, pbiron. Fixes #50350. Built from https://develop.svn.wordpress.org/trunk@48517 git-svn-id: http://core.svn.wordpress.org/trunk@48279 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-automatic-updater.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index 01e4dea1aa..ba38ec95b3 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -1045,7 +1045,7 @@ class WP_Automatic_Updater { $body[] = __( 'These plugins failed to update:' ); foreach ( $failed_updates['plugin'] as $item ) { - $body[] = "- {$item->name}"; + $body[] = "- {$item->name} version {$item->item->new_version}"; $past_failure_emails[ $item->item->plugin ] = $item->item->new_version; } @@ -1058,7 +1058,7 @@ class WP_Automatic_Updater { $body[] = __( 'These themes failed to update:' ); foreach ( $failed_updates['theme'] as $item ) { - $body[] = "- {$item->name}"; + $body[] = "- {$item->name} version {$item->item->new_version}"; $past_failure_emails[ $item->item->theme ] = $item->item->new_version; } @@ -1076,7 +1076,7 @@ class WP_Automatic_Updater { $body[] = __( 'These plugins are now up to date:' ); foreach ( $successful_updates['plugin'] as $item ) { - $body[] = "- {$item->name}"; + $body[] = "- {$item->name} version {$item->item->new_version}"; unset( $past_failure_emails[ $item->item->plugin ] ); } @@ -1089,7 +1089,7 @@ class WP_Automatic_Updater { $body[] = __( 'These themes are now up to date:' ); foreach ( $successful_updates['theme'] as $item ) { - $body[] = "- {$item->name}"; + $body[] = "- {$item->name} version {$item->item->new_version}"; unset( $past_failure_emails[ $item->item->theme ] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4fc571c877..dd6f888050 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta2-48516'; +$wp_version = '5.5-beta2-48517'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.