Skip to:
Content

BuddyPress.org

Changeset 7899


Ignore:
Timestamp:
02/16/2014 09:47:21 PM (7 years ago)
Author:
boonebgorges
Message:

When fetching the group in bp_get_activity_secondary_avatar(), don't get group extras

We have no need for membership info, etc, so we avoid a number of queries here.

See #5398

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r7756 r7899  
    12771277                // Only if groups is active
    12781278                if ( bp_is_active( 'groups' ) ) {
    1279                     $group = groups_get_group( array( 'group_id' => $item_id ) );
     1279                    $group = groups_get_group( array(
     1280                        'group_id'          => $item_id,
     1281                        'populate_extras'   => false,
     1282                        'update_meta_cache' => false,
     1283                    ) );
    12801284                    $link  = bp_get_group_permalink( $group );
    12811285                    $name  = $group->name;
Note: See TracChangeset for help on using the changeset viewer.