Networks and Sites: Remove unnecessary commented code from `remove_user_from_blog()`.

This change removes a call to `wp_revoke_user()` from `remove_user_from_blog()`: this line has been commented out since forever.

Props Faison.
Fixes #55170.

Built from https://develop.svn.wordpress.org/trunk@52737


git-svn-id: http://core.svn.wordpress.org/trunk@52326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-02-15 21:21:00 +00:00
parent fd752670a2
commit ca76abd7e8
2 changed files with 1 additions and 2 deletions

View File

@ -280,7 +280,6 @@ function remove_user_from_blog( $user_id, $blog_id = 0, $reassign = 0 ) {
update_user_meta( $user_id, 'source_domain', $new_domain ); update_user_meta( $user_id, 'source_domain', $new_domain );
} }
// wp_revoke_user( $user_id );
$user = get_userdata( $user_id ); $user = get_userdata( $user_id );
if ( ! $user ) { if ( ! $user ) {
restore_current_blog(); restore_current_blog();

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-alpha-52735'; $wp_version = '6.0-alpha-52737';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.