Opened 9 months ago
Last modified 11 days ago
#61146 new defect (bug)
Multisite: Marking a user account as spam, also marks the blogs he's a member of as spam
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | Networks and Sites | Keywords: | |
Focuses: | multisite | Cc: |
Description
Marking a user account as spam on wp-admin/network/users.php prohibits this user from logging in. Cool. But WP also fetches the blogs he's a member or and also marks these as spam. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable. Resulting only super-admins being able to access these blogs. This makes no sense. One rotten apple should not ruin access to blogs for other users. What is the motive behind such design?
Marking a user account as spam should not influence the status of any site.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Upon reviewing the code, I can confirm that when a user account is marked as spam, all the sites linked to that user are set to 'spam' = '1'. Similarly, when a user is marked as 'notspam,' all their associated sites are updated to 'spam' = '0'.
This behaviour might be a good topic for discussion to understand its purpose and whether it works as intended.