diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/network/users.php --- a/wp/wp-admin/network/users.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/network/users.php Fri Sep 05 18:40:08 2025 +0200 @@ -94,7 +94,7 @@ $blogs = get_blogs_of_user( $user_id, true ); foreach ( (array) $blogs as $details ) { - if ( get_network()->site_id != $details->userblog_id ) { // Main blog is not a spam! + if ( ! is_main_site( $details->userblog_id ) ) { // Main site is not a spam! update_blog_status( $details->userblog_id, 'spam', '1' ); } } @@ -184,7 +184,7 @@ continue; } wpmu_delete_user( $id ); - $i++; + ++$i; } } @@ -240,7 +240,7 @@ get_current_screen()->set_help_sidebar( '
' . __( 'For more information:' ) . '
' . '' . __( 'Documentation on Network Users' ) . '
' . - '' . __( 'Support Forums' ) . '
' + '' . __( 'Support forums' ) . '
' ); get_current_screen()->set_screen_reader_content( @@ -253,30 +253,34 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; -if ( isset( $_REQUEST['updated'] ) && 'true' == $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) { - ?> -- -