[wp-trac] [WordPress Trac] #47004: WordPress email subject update - phase 2
WordPress Trac
noreply at wordpress.org
Mon Sep 8 14:03:41 UTC 2025
#47004: WordPress email subject update - phase 2
--------------------------------------------------+-----------------------
Reporter: ramiy | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.9
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test-info dev-feedback | Focuses:
--------------------------------------------------+-----------------------
Changes (by pmbaldha):
* keywords: has-patch has-test-info => has-patch has-test-info dev-
feedback
Comment:
== Test Report
=== Description
This report confirms that the proposed patch functions as intended, adding
new filters for several Multisite-related email subjects.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9380
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.1
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 140.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.3
- MU Plugins:
* test.php
- Plugins:
* Email Log 2.6
* Test Reports 1.2.0
=== Actual Results
Without the patch:
The filters are not available.
With the patch applied:
✅ delete_site_email_subject — works as expected when deleting a site from
the network.
✅ newblog_notify_siteadmin_subject — works as expected when a user
creates a new site.
✅ newuser_notify_siteadmin_subject — works as expected when a new user
registers on the network.
✅ new_user_email_subject — works as expected when a user updates their
email address from their profile.
=== Additional Notes
The following code was used to test the filters:
{{{#!php
<?php
add_filter( 'delete_site_email_subject', function( $subject ) {
return 'Hello World! - delete site';
} );
add_filter( 'newblog_notify_siteadmin_subject', function( $subject,
$blog_id ) {
return "Hello World! - new site";
}, 10, 2 );
add_filter( 'newuser_notify_siteadmin_subject', function( $subject, $user
) {
return "Hello World! - new user";
}, 10, 2 );
add_filter( 'new_user_email_subject', function( $subject ) {
return 'Hello World! - email change';
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47004#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list