Skip to:
Content

BuddyPress.org

Ticket #8481: 8481.patch

File 8481.patch, 1.2 KB (added by imath, 4 years ago)
  • src/bp-core/bp-core-taxonomy.php

    diff --git src/bp-core/bp-core-taxonomy.php src/bp-core/bp-core-taxonomy.php
    index 69932c953..fc0597ad0 100644
    function bp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { 
    167167                }
    168168
    169169                $site_terms = wp_get_object_terms( $object_ids, $site_taxonomies, $args );
    170                 $retval     = array_merge( $retval, $site_terms );
     170
     171                if ( ! is_wp_error( $site_terms ) ) {
     172                        $retval = array_merge( $retval, $site_terms );
     173                }
    171174
    172175                if ( $switched ) {
    173176                        restore_current_blog();
  • src/bp-core/classes/class-bp-user-query.php

    diff --git src/bp-core/classes/class-bp-user-query.php src/bp-core/classes/class-bp-user-query.php
    index 68b4fbf56..0e36404f4 100644
    class BP_User_Query { 
    253253                        'limit'   => ''
    254254                );
    255255
     256                if ( ! isset( $bp->members->table_name_last_activity ) || ! $bp->members->table_name_last_activity ) {
     257                        $bp->members->table_name_last_activity = bp_core_get_table_prefix() . 'bp_activity';
     258                }
     259
    256260                /* TYPE **************************************************************/
    257261
    258262                // Determines the sort order, which means it also determines where the