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
This commit is contained in:
parent
8f3f181c4e
commit
664e5a7568
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user