[buddypress-trac] [BuddyPress Trac] #7614: Group member count routine is bad
buddypress-trac
noreply at wordpress.org
Thu Oct 21 18:02:58 UTC 2021
#7614: Group member count routine is bad
-------------------------------------------------+-------------------------
Reporter: boonebgorges | Owner:
| espellcaste
Type: enhancement | Status: closed
Priority: normal | Milestone: 10.0.0
Component: Groups | Version: 1.2.3
Severity: normal | Resolution: fixed
Keywords: has-unit-tests dev-reviewed 2nd- |
opinion |
-------------------------------------------------+-------------------------
Comment (by imath):
In [changeset:"13129" 13129]:
{{{
#!CommitTicketReference repository="" revision="13129"
Avoid using legacy args with `groups_get_group_members()`
Instead of using the `'exclude_banned'` and/or `'exclude_admins_mods'`
args, it's best to use the `'group_role'` argument & pass the list of
roles to include in the count (in this case all roles except the banned
one).
See #7614
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7614#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list