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. git-svn-id: https://develop.svn.wordpress.org/trunk@48517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa7b1bbb99
commit
83e78d8cdd
@ -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 ] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user