Networks and Sites: Pass the $blog_id
parameter to the newblog_notify_siteadmin
filter.
Props mukto90, virgodesign. Fixes #48554. git-svn-id: https://develop.svn.wordpress.org/trunk@46697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cde71eed52
commit
188f809598
@ -1422,10 +1422,12 @@ Disable these notifications: %4$s'
|
||||
* to the network administrator.
|
||||
*
|
||||
* @since MU (3.0.0)
|
||||
* @since 5.4.0 The `$blog_id` parameter was added.
|
||||
*
|
||||
* @param string $msg Email body.
|
||||
* @param string $msg Email body.
|
||||
* @param int $blog_id The new site's ID.
|
||||
*/
|
||||
$msg = apply_filters( 'newblog_notify_siteadmin', $msg );
|
||||
$msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id );
|
||||
|
||||
/* translators: New site notification email subject. %s: New site URL. */
|
||||
wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg );
|
||||
|
Loading…
Reference in New Issue
Block a user