From 323e25b2bc2122a46b2283e783e133365da2e9b5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 11 Nov 2019 09:53:02 +0000 Subject: [PATCH] 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 --- wp-includes/ms-functions.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 2f16281754..94418ad350 100644 --- a/wp-includes/ms-functions.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f7fbbf8ba6..d6fb72ebad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46696'; +$wp_version = '5.4-alpha-46697'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.