[buddypress-trac] [BuddyPress Trac] #7224: bp_groups_get_group_type() probably shouldn't return unregistered group types.

buddypress-trac noreply at wordpress.org
Fri Aug 19 15:40:21 UTC 2016


#7224: bp_groups_get_group_type() probably shouldn't return unregistered group
types.
-------------------------+--------------------
 Reporter:  dcavins      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.7
Component:  Groups       |     Version:  2.6.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by boonebgorges):

 > Would it make more sense in a situation with small arrays like this to
 add the good terms to a validated array and pass that along, rather than
 removing bad terms from the array with an unset() which then should be
 followed up by an array_values()?

 This sounds great to me.

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


More information about the buddypress-trac mailing list