Skip to:
Content

BuddyPress.org

Ticket #8736: 8736.patch

File 8736.patch, 745 bytes (added by imath, 3 years ago)
  • src/bp-core/bp-core-functions.php

    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() ) { 
    34003400                return $types;
    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 ) {
    34063406                $terms = bp_get_terms(
    function bp_get_taxonomy_types( $taxonomy = '', $types = array() ) { 
    34133413                        return $types;
    34143414                }
    34153415
     3416                $db_types      = array();
    34163417                $type_metadata = array_keys( get_registered_meta_keys( 'term', $taxonomy ) );
    34173418
    34183419                foreach ( $terms as $term ) {