Networks and Sites: Pass the $blog_id parameter to the newblog_notify_siteadmin filter.
Props mukto90, virgodesign. Fixes #48554. Built from https://develop.svn.wordpress.org/trunk@46697 git-svn-id: http://core.svn.wordpress.org/trunk@46497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user