[buddypress-trac] [BuddyPress Trac] #6441: Missing break statement inside bp_groups_admin_load() function
buddypress-trac
noreply at wordpress.org
Fri Mar 21 10:37:47 UTC 2025
#6441: Missing break statement inside bp_groups_admin_load() function
-------------------------------+-------------------------------------
Reporter: tw2113 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Contributions
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: needs-patch close |
-------------------------------+-------------------------------------
Changes (by sourabh.matolia):
* keywords: needs-patch => needs-patch close
Comment:
Hello,
Looks like It is intentional that we don't have a 'break' statement under
function 'bp_groups_admin_load' > switch ( $new_role ) > case 'mod'.
case 'mod' > Simply change the user role to 'member', next it gets into
the case 'admin'
case 'admin' > Updates the new role to mod (Moderator)
I think we can close the ticket.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6441#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list