Skip to content

Commit a5f712b

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wp-admin/network/users.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@
132132

133133
/** This filter is documented in wp-admin/network/users.php */
134134
if ( apply_filters( 'network_user_spam_propagate_to_blogs', false, $user_id ) ) {
135-
$blogs = get_blogs_of_user( $user_id, true );
136-
137-
foreach ( $blogs as $details ) {
135+
foreach ( get_blogs_of_user( $user_id, true ) as $details ) {
138136
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.
139137
update_blog_status( $details->userblog_id, 'spam', '0' );
140138
}

0 commit comments

Comments
 (0)