Skip to:
Content

BuddyPress.org

Changeset 12798


Ignore:
Timestamp:
11/19/2020 10:00:21 PM (2 months ago)
Author:
imath
Message:

Merge Group Types Metadata before filtering Group Type objects

This is necessary to take in account the edits the site Administrator made from the Group Types Administration screen.

Fixes #8400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r12776 r12798  
    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    }
     2813
     2814    $types = wp_filter_object_list( $types, $args, $operator );
    28152815
    28162816    /**
Note: See TracChangeset for help on using the changeset viewer.