mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Users: In remove_user_from_blog():
* Change default value of the `$blog_id` parameter to match the documented type. * Change the type of the `$reassign` parameter for consistency with `$user_id` and `$blog_id`. * Add documentation for the return value. See #49361. git-svn-id: https://develop.svn.wordpress.org/trunk@47173 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -158,7 +158,7 @@ if ( isset( $_GET['action'] ) ) {
|
||||
}
|
||||
|
||||
if ( ! empty( $_POST['delete'] ) && 'reassign' == $_POST['delete'][ $blogid ][ $id ] ) {
|
||||
remove_user_from_blog( $id, $blogid, $user_id );
|
||||
remove_user_from_blog( $id, $blogid, (int) $user_id );
|
||||
} else {
|
||||
remove_user_from_blog( $id, $blogid );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user