diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 5286ec234..24cd63dff 100644
|
|
function bp_get_taxonomy_types( $taxonomy = '', $types = array() ) { |
3400 | 3400 | return $types; |
3401 | 3401 | } |
3402 | 3402 | |
3403 | | $db_types = (array) wp_cache_get( $taxonomy, 'bp_object_terms' ); |
| 3403 | $db_types = wp_cache_get( $taxonomy, 'bp_object_terms' ); |
3404 | 3404 | |
3405 | 3405 | if ( ! $db_types ) { |
3406 | 3406 | $terms = bp_get_terms( |
… |
… |
function bp_get_taxonomy_types( $taxonomy = '', $types = array() ) { |
3413 | 3413 | return $types; |
3414 | 3414 | } |
3415 | 3415 | |
| 3416 | $db_types = array(); |
3416 | 3417 | $type_metadata = array_keys( get_registered_meta_keys( 'term', $taxonomy ) ); |
3417 | 3418 | |
3418 | 3419 | foreach ( $terms as $term ) { |