From 188f80959848f53649909ff5d5e953421db1a4c3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 11 Nov 2019 09:51:09 +0000 Subject: [PATCH] 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 --- src/wp-includes/ms-functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 2f16281754..94418ad350 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -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 );