Skip to content

Commit 78f3ca7

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

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
@@ -101,9 +101,7 @@
101101
* @param int $user_id User ID.
102102
*/
103103
if ( apply_filters( 'network_user_spam_propagate_to_blogs', false, $user_id ) ) {
104-
$blogs = get_blogs_of_user( $user_id, true );
105-
106-
foreach ( $blogs as $details ) {
104+
foreach ( get_blogs_of_user( $user_id, true ) as $details ) {
107105
if ( ! is_main_site( $details->userblog_id ) ) { // Main site is not a spam!
108106
update_blog_status( $details->userblog_id, 'spam', '1' );
109107
}

0 commit comments

Comments
 (0)