WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 3 months ago

#42133 reviewing enhancement

Add filter to emails sent by wp_new_blog_notification()

Reported by: johnbillion Owned by: johnbillion
Milestone: 5.0 Priority: normal
Severity: normal Version: 2.1
Component: Upgrade/Install Keywords: good-first-bug has-patch
Focuses: multisite Cc:

Description

wp_new_blog_notification() contains a call to wp_mail() which sends an email when WordPress is first installed, and when a site is added to a Multisite network. (Ref).

The contents of the email cannot be filtered. The recipient, subject, message, and headers should be passed through a filter in the same format as the password_change_email filter. (Ref).

Attachments (1)

42133.patch (3.2 KB) - added by Dharm1025 5 months ago.
All data now passed through a filter.

Download all attachments as: .zip

Change History (5)

@Dharm1025
5 months ago

All data now passed through a filter.

#1 @Dharm1025
5 months ago

  • Keywords has-patch added; needs-patch removed

#2 @johnbillion
5 months ago

  • Owner set to johnbillion
  • Status changed from new to reviewing

#3 @johnbillion
5 months ago

  • Milestone changed from Future Release to 5.0

This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.


3 months ago

Note: See TracTickets for help on using tickets.