Skip to content

Commit 3ba39c4

Browse files
llocwestonruter
andauthored
Update src/wp-admin/network/users.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 7c84284 commit 3ba39c4

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
@@ -136,7 +136,7 @@
136136
$blogs = get_blogs_of_user( $user_id, true );
137137

138138
foreach ( $blogs as $details ) {
139-
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.
139+
if ( ! is_main_site( $details->userblog_id ) && get_current_network_id() === $details->site_id ) { // Main site is never a spam and part of the current network.
140140
update_blog_status( $details->userblog_id, 'spam', '0' );
141141
}
142142
}

0 commit comments

Comments
 (0)