Skip to content

Commit 5782913

Browse files
llocspacedmonkey
andauthored
Update src/wp-admin/network/users.php
Co-authored-by: Jonny Harris <[email protected]>
1 parent 7512d03 commit 5782913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/network/users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
$blogs = get_blogs_of_user( $user_id, true );
135135

136136
foreach ( $blogs as $details ) {
137-
if ( ! is_main_site( $details->userblog_id ) ) { // Main site is never a spam!
137+
if ( ! is_main_site( $details->userblog_id ) && $details->site_id === get_current_network_id() ) { // Main site is never a spam and part of the current network.
138138
update_blog_status( $details->userblog_id, 'spam', '0' );
139139
}
140140
}

0 commit comments

Comments
 (0)