[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 01:48:15 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):

 This looks good to me. One small thing: can you check the keys on the
 index after some items have been unset? I can't recall if it's numerically
 indexed; if so, running `unset( $array[1] )` on `[ 0 => 'foo', 1 => 'bar',
 2 => 'baz' ]` will leave you with an array with keys 0 and 2, and you
 should reset by passing through `array_values()`.

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


More information about the buddypress-trac mailing list