We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f712b commit 78f3ca7Copy full SHA for 78f3ca7
src/wp-admin/network/users.php
@@ -101,9 +101,7 @@
101
* @param int $user_id User ID.
102
*/
103
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 ) {
+ foreach ( get_blogs_of_user( $user_id, true ) as $details ) {
107
if ( ! is_main_site( $details->userblog_id ) ) { // Main site is not a spam!
108
update_blog_status( $details->userblog_id, 'spam', '1' );
109
}
0 commit comments