From 664e5a7568a3783c1a7e0f0d88be19c44b463977 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Feb 2020 19:41:41 +0000 Subject: [PATCH] Users: Pass the `$reassign` parameter to the `remove_user_from_blog` action. Props Tivus. Fixes #49361. git-svn-id: https://develop.svn.wordpress.org/trunk@47175 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 147f07f89a..74177dcdb4 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -249,11 +249,13 @@ function remove_user_from_blog( $user_id, $blog_id = 0, $reassign = 0 ) { * Fires before a user is removed from a site. * * @since MU (3.0.0) + * @since 5.4.0 Added the `$reassign` parameter. * - * @param int $user_id User ID. - * @param int $blog_id Blog ID. + * @param int $user_id ID of the user being removed. + * @param int $blog_id ID of the blog the user is being removed from. + * @param int $reassign ID of the user to whom to reassign posts. */ - do_action( 'remove_user_from_blog', $user_id, $blog_id ); + do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign ); // If being removed from the primary blog, set a new primary // if the user is assigned to multiple blogs.