[buddypress-trac] [BuddyPress Trac] #7524: get_group_administrator_ids() & get_group_moderator_ids() should protect against bad parameter.

buddypress-trac noreply at wordpress.org
Fri Jun 23 13:39:32 UTC 2017


#7524: get_group_administrator_ids() & get_group_moderator_ids() should protect
against bad parameter.
-----------------------------+----------------------
 Reporter:  dcavins          |       Owner:  dcavins
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  3.0
Component:  Groups           |     Version:  1.6
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch early  |
-----------------------------+----------------------
Changes (by dcavins):

 * owner:   => dcavins
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11609"]:
 {{{
 #!CommitTicketReference repository="" revision="11609"
 Handle missing parameter in group admin fetching functions.

 In some situations, `bp_group_has_moderators()` is
 being called without a `$group` parameter, causing the
 downstream functions problems. This commit adds an
 early return if the required parameter isn’t supplied.
 It also recognizes when the cache request returns false
 and skips the integer casting step.

 Fixes #7524.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7524#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list