From d3a99528388d2ca77833bfa885e4e157ac122e6b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Feb 2020 19:43:03 +0000 Subject: [PATCH] Users: Pass the `$reassign` parameter to the `remove_user_from_blog` action. Props Tivus. Fixes #49361. Built from https://develop.svn.wordpress.org/trunk@47175 git-svn-id: http://core.svn.wordpress.org/trunk@46975 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 147f07f89a..74177dcdb4 100644 --- a/wp-includes/ms-functions.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index f75b07561f..6ca6ecbbc6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47174'; +$wp_version = '5.4-alpha-47175'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.