From df490f0ec59a46767d8523b3c2fd53b05159d020 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 2 Mar 2012 23:52:19 +0000 Subject: [PATCH] Pass WP_User object to the newuser_notify_siteadmin filter. props boonebgorges. fixes #20162. git-svn-id: https://develop.svn.wordpress.org/trunk@20101 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 5721fefaf5..cea80c3131 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1042,6 +1042,7 @@ Disable these notifications: %4s' ), $blogname, $siteurl, $_SERVER['REMOTE_ADDR' * the notification email. * * @since MU + * @uses apply_filters() Filter newuser_notify_siteadmin to change the content of the email message * * @param int $user_id The new user's ID. * @return bool @@ -1063,7 +1064,7 @@ Remote IP: %2s Disable these notifications: %3s'), $user->user_login, $_SERVER['REMOTE_ADDR'], $options_site_url); - $msg = apply_filters( 'newuser_notify_siteadmin', $msg ); + $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user ); wp_mail( $email, sprintf(__('New User Registration: %s'), $user->user_login), $msg ); return true; }