Opened 3 hours ago
#48554 new enhancement
$blog_id missing in the newblog_notify_siteadmin filter
Reported by: | virgodesign | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.2.4 |
Component: | Networks and Sites | Keywords: | |
Focuses: | multisite | Cc: | |
PR Number: |
Description
Hi,
in a wordpress multisite environment there is the newblog_notify_siteadmin( $blog_id, $deprecated )
function that notifies the network admin that a new site has been activated. This function prepare and send the email notice to the network admin just after a news site has been created.
The message is filtered by the newblog_notify_siteadmin
hook before the email is sent.
In my opinion this filter does not give a real chance to customize the message because there is no informations passed in about the new created blog.
This is how the filter is
$msg = apply_filters( 'newblog_notify_siteadmin', $msg );
and this is how it should be
$msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id );
This will also create consistency with the
$msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user );
filter, also located in ms-functions.php and related to the new user registration.
Note: See
TracTickets for help on using
tickets.