WordPress.org

Make WordPress Core

Changeset 47175


Ignore:
Timestamp:
02/04/2020 07:41:41 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Users: Pass the $reassign parameter to the remove_user_from_blog action.

Props Tivus.
Fixes #49361.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r47174 r47175  
    250250     *
    251251     * @since MU (3.0.0)
    252      *
    253      * @param int $user_id User ID.
    254      * @param int $blog_id Blog ID.
    255      */
    256     do_action( 'remove_user_from_blog', $user_id, $blog_id );
     252     * @since 5.4.0 Added the `$reassign` parameter.
     253     *
     254     * @param int $user_id  ID of the user being removed.
     255     * @param int $blog_id  ID of the blog the user is being removed from.
     256     * @param int $reassign ID of the user to whom to reassign posts.
     257     */
     258    do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign );
    257259
    258260    // If being removed from the primary blog, set a new primary
Note: See TracChangeset for help on using the changeset viewer.