Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/08/2022 04:17:00 PM (3 years ago)
Author:
imath
Message:

Make sure to run a type terms query when the types cache is empty

[13312] introduced a regression preventing group/member types stored as WP Terms to be retrieved.

Let's bring the right behavior back.

See #8649
Fixes #8736

File:
1 edited

Legend:

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

    r13312 r13323  
    34013401    }
    34023402
    3403     $db_types = (array) wp_cache_get( $taxonomy, 'bp_object_terms' );
     3403    $db_types = wp_cache_get( $taxonomy, 'bp_object_terms' );
    34043404
    34053405    if ( ! $db_types ) {
     
    34143414        }
    34153415
     3416        $db_types      = array();
    34163417        $type_metadata = array_keys( get_registered_meta_keys( 'term', $taxonomy ) );
    34173418
Note: See TracChangeset for help on using the changeset viewer.