Skip to:
Content

BuddyPress.org

Ticket #8400: 8400.patch

File 8400.patch, 818 bytes (added by imath, 5 years ago)
  • src/bp-groups/bp-groups-functions.php

    diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
    index c2f6298f0..50b7b399d 100644
    function bp_groups_register_group_type( $group_type, $args = array() ) { 
    28062806function bp_groups_get_group_types( $args = array(), $output = 'names', $operator = 'and' ) {
    28072807        $types = buddypress()->groups->types;
    28082808
    2809         $types = wp_filter_object_list( $types, $args, $operator );
    2810 
    28112809        // Merge with types available into the database.
    28122810        if ( ! isset( $args['code'] ) || true !== $args['code'] ) {
    28132811                $types = bp_get_taxonomy_types( bp_get_group_type_tax_name(), $types );
    28142812        }
    28152813
     2814        $types = wp_filter_object_list( $types, $args, $operator );
     2815
    28162816        /**
    28172817         * Filters the array of group type objects.
    28182818         *