[wp-trac] [WordPress Trac] #42134: Add filter to emails sent by wp-admin/network/site-new.php
WordPress Trac
noreply at wordpress.org
Thu Oct 1 21:20:48 UTC 2020
#42134: Add filter to emails sent by wp-admin/network/site-new.php
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner:
| johnbillion
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.6
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch needs- | Focuses: multisite
refresh commit |
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* keywords: good-first-bug has-patch needs-refresh => good-first-bug has-
patch needs-refresh commit
Comment:
[attachment:"42134.diff"] continues on from the patches here and on
#42135.
* Improved naming and structure of the filters
* Avoid passing unnecessary parameters such as the site title, as this can
be gotten from the site option
* Pass the complete site and user objects to the filters
* Correctly switch to the locale of the user associated with the network
admin email address, falling back to the locale of the site if there isn't
one
This is looking good to me now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42134#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list