[wp-trac] [WordPress Trac] #61146: Multisite: Marking a user account as spam, also marks the blogs he's a member of as spam

WordPress Trac noreply at wordpress.org
Tue Feb 17 09:25:14 UTC 2026


#61146: Multisite: Marking a user account as spam, also marks the blogs he's a
member of as spam
-------------------------------------------------+-------------------------
 Reporter:  ignatiusjeroe                        |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  7.0
Component:  Networks and Sites                   |     Version:  6.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch early has-unit-tests       |     Focuses:  multisite
  needs-dev-note commit                          |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61660" 61660]:
 {{{
 #!CommitTicketReference repository="" revision="61660"
 Networks and Sites: Don't automatically mark website as spam when an
 account is marked as spam.

 This changeset does the following:
 - Explicitly add `403` to `wp_die()` calls for unauthorized actions
 - Introduce the `network_user_spam_propagate_to_blogs` filter to provide
 flexibility for developers to control spam status propagation
 - Use `is_super_admin()` checks for both "spam" and "notspam" actions to
 prevent unauthorized modification of network administrators
 - Refine the "notspam" logic to ensure that blog status updates are
 correctly scoped to the current network
 - Add related unit tests coverage

 Props ignatiusjeroe, realloc, johnjamesjacoby, westonruter, mukesh27,
 pratiknawkar94, anukasha.
 Fixes #61146.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61146#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list