Skip to:
Content

BuddyPress.org

Changeset 11120


Ignore:
Timestamp:
09/19/2016 11:52:34 PM (4 years ago)
Author:
dcavins
Message:

Use multi-site taxonomy functions on WP User list table.

In WP Users list table, when filtering users by member type, use the
new multi-site-safe taxonomy functions.

Props offereins.

See #6060.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r11111 r11120  
    22602260
    22612261            // Get the list of users that are assigned to this member type.
    2262             $type = get_term_by( 'slug', $type_slug, bp_get_member_type_tax_name() );
     2262            $type = bp_get_term_by( 'slug', $type_slug, bp_get_member_type_tax_name() );
    22632263
    22642264            if ( empty( $type->term_id ) ) {
     
    22662266            }
    22672267
    2268             $user_ids = get_objects_in_term( $type->term_id, bp_get_member_type_tax_name() );
     2268            $user_ids = bp_get_objects_in_term( $type->term_id, bp_get_member_type_tax_name() );
    22692269
    22702270            if ( $user_ids && ! is_wp_error( $user_ids ) ) {
Note: See TracChangeset for help on using the changeset viewer.