Make WordPress Core

Changeset 48517


Ignore:
Timestamp:
07/20/2020 06:26:18 PM (4 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r48408 r48517  
    10461046
    10471047                foreach ( $failed_updates['plugin'] as $item ) {
    1048                     $body[] = "- {$item->name}";
     1048                    $body[] = "- {$item->name} version {$item->item->new_version}";
    10491049
    10501050                    $past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
     
    10591059
    10601060                foreach ( $failed_updates['theme'] as $item ) {
    1061                     $body[] = "- {$item->name}";
     1061                    $body[] = "- {$item->name} version {$item->item->new_version}";
    10621062
    10631063                    $past_failure_emails[ $item->item->theme ] = $item->item->new_version;
     
    10771077
    10781078                foreach ( $successful_updates['plugin'] as $item ) {
    1079                     $body[] = "- {$item->name}";
     1079                    $body[] = "- {$item->name} version {$item->item->new_version}";
    10801080
    10811081                    unset( $past_failure_emails[ $item->item->plugin ] );
     
    10901090
    10911091                foreach ( $successful_updates['theme'] as $item ) {
    1092                     $body[] = "- {$item->name}";
     1092                    $body[] = "- {$item->name} version {$item->item->new_version}";
    10931093
    10941094                    unset( $past_failure_emails[ $item->item->theme ] );
Note: See TracChangeset for help on using the changeset viewer.