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:
Sergey Biryukov 2019-11-11 09:53:02 +00:00
parent 3d623995a8
commit 323e25b2bc
2 changed files with 5 additions and 3 deletions

View File

@ -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 );

View File

@ -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.