mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
761644c636
commit
d3a9952838
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user