Make WordPress Core

Ticket #50268: 50268.diff

File 50268.diff, 3.1 KB (added by audrasjb, 5 years ago)

Upgrade/Install: Improve plugins and themes auto-updates email notifications

  • src/wp-admin/includes/class-wp-automatic-updater.php

    diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
    index a1efdc2bb2..5ba2f3ff94 100644
    a b class WP_Automatic_Updater { 
    946946                switch ( $type ) {
    947947                        case 'success':
    948948                                /* translators: %s: Site title. */
    949                                 $subject = __( '[%s] Some plugins or themes were automatically updated' );
     949                                $subject = __( '[%s] Some plugins and/or themes were automatically updated' );
     950                                $body[]  = sprintf(
     951                                        /* translators: %s: Home URL. */
     952                                        __( 'Howdy! Some plugins and/or themes have been updated automatically to new versions on your site at %s. No further action is needed on your part.' ),
     953                                        home_url()
     954                                );
    950955                                break;
    951956                        case 'fail':
    952957                                /* translators: %s: Site title. */
    953                                 $subject = __( '[%s] Some plugins or themes have failed to update' );
     958                                $subject = __( '[%s] Some plugins and/or themes have failed to update' );
    954959                                $body[]  = sprintf(
    955960                                        /* translators: %s: Home URL. */
    956961                                        __( 'Howdy! Failures occurred when attempting to update plugins/themes on your site at %s.' ),
    class WP_Automatic_Updater { 
    961966                                break;
    962967                        case 'mixed':
    963968                                /* translators: %s: Site title. */
    964                                 $subject = __( '[%s] Some plugins or themes were automatically updated' );
     969                                $subject = __( '[%s] Some plugins and/or themes were automatically updated' );
    965970                                $body[]  = sprintf(
    966971                                        /* translators: %s: Home URL. */
    967972                                        __( 'Howdy! Failures occurred when attempting to update plugins/themes on your site at %s.' ),
    class WP_Automatic_Updater { 
    980985                        foreach ( $failed_updates['plugin'] as $item ) {
    981986                                $body[] = "- {$item->name}";
    982987                        }
     988                        $body[] = sprintf(
     989                                /* translators: %s: Plugins screen URL. */
     990                                __( 'To manage plugins on your site, visit the Plugins page: %s' ),
     991                                admin_url( 'plugins.php' )
     992                        );
    983993                        $body[] = "\n";
    984994                }
    985995                // Get failed theme updates.
    class WP_Automatic_Updater { 
    989999                        foreach ( $failed_updates['theme'] as $item ) {
    9901000                                $body[] = "- {$item->name}";
    9911001                        }
     1002                        $body[] = sprintf(
     1003                                /* translators: %s: Themes screen URL. */
     1004                                __( 'To manage themes on your site, visit the Plugins page: %s' ),
     1005                                admin_url( 'themes.php' )
     1006                        );
    9921007                        $body[] = "\n";
    9931008                }
    9941009                // Get successful plugin updates.
    class WP_Automatic_Updater { 
    9981013                        foreach ( $successful_updates['plugin'] as $item ) {
    9991014                                $body[] = "- {$item->name}";
    10001015                        }
     1016                        $body[] = sprintf(
     1017                                /* translators: %s: Plugins screen URL. */
     1018                                __( 'To manage plugins on your site, visit the Plugins page: %s' ),
     1019                                admin_url( 'plugins.php' )
     1020                        );
    10011021                        $body[] = "\n";
    10021022                }
    10031023                // Get successful theme updates.
    class WP_Automatic_Updater { 
    10071027                        foreach ( $successful_updates['theme'] as $item ) {
    10081028                                $body[] = "- {$item->name}";
    10091029                        }
     1030                        $body[] = sprintf(
     1031                                /* translators: %s: Themes screen URL. */
     1032                                __( 'To manage themes on your site, visit the Plugins page: %s' ),
     1033                                admin_url( 'themes.php' )
     1034                        );
    10101035                        $body[] = "\n";
    10111036                }
    10121037                $body[] = "\n";