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
This commit is contained in:
Sergey Biryukov 2020-02-04 19:43:03 +00:00
parent 761644c636
commit d3a9952838
2 changed files with 6 additions and 4 deletions

View File

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

View File

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