Skip to:
Content

BuddyPress.org

Changeset 1290 for trunk/bp-groups.php


Ignore:
Timestamp:
03/31/2009 02:14:38 PM (17 years ago)
Author:
apeatling
Message:

Fixes #635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1273 r1290  
    969969    if ( function_exists('bp_activity_record') ) {
    970970        extract($args);
    971        
     971
     972        if ( !$group_obj ) {
     973            if ( !$group_obj = wp_cache_get( 'groups_group_nouserdata_' . $item_id, 'bp' ) ) {
     974                $group_obj = new BP_Groups_Group( $group_obj->id, false, false );
     975                wp_cache_set( 'groups_group_nouserdata_' . $item_id, $group_obj, 'bp' );
     976            }
     977        }
     978
    972979        if ( 'public' == $group_obj->status )
    973980            bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id );
Note: See TracChangeset for help on using the changeset viewer.