Make WordPress Core

Ticket #59250: patch.diff

File patch.diff, 891 bytes (added by alexanderkoledov, 11 months ago)
  • wp-admin/includes/misc.php

     
    15311531                $site_title = parse_url( home_url(), PHP_URL_HOST );
    15321532        }
    15331533
    1534         wp_mail(
    1535                 $value,
    1536                 sprintf(
    1537                         /* translators: New admin email address notification email subject. %s: Site title. */
    1538                         __( '[%s] New Admin Email Address' ),
    1539                         $site_title
    1540                 ),
    1541                 $content
    1542         );
     1534    $subject = sprintf(
     1535    /* translators: New admin email address notification email subject. %s: Site title. */
     1536        __( '[%s] New Admin Email Address' ),
     1537        $site_title
     1538    );
     1539    $subject = apply_filters( 'new_admin_email_subject', $subject );
    15431540
     1541    wp_mail(
     1542        $value,
     1543        $subject,
     1544        $content
     1545    );
     1546
    15441547        if ( $switched_locale ) {
    15451548                restore_previous_locale();
    15461549        }