Skip to:
Content

BuddyPress.org

Changeset 5408


Ignore:
Timestamp:
11/29/2011 07:49:56 PM (13 years ago)
Author:
djpaul
Message:

In the Activity admin, fix certain activity types showing incorrect "In Reply To" information. See #3708

File:
1 edited

Legend:

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

    r5396 r5408  
    810810
    811811        // Get the root activity ID; this may be not be the same as $item['id'] for nested items (e.g. activity_comments)
    812         $is_root_activity  = empty( $item['item_id'] );
     812        if ( empty( $item['item_id'] ) || ! in_array( $item['type'], apply_filters( 'bp_activity_admin_root_activity_types', array( 'activity_comment' ), $item ) ) )
     813            $is_root_activity  = true;
     814        else
     815            $is_root_activity  = false;
     816
    813817        $root_activity_id  = $is_root_activity ? $item['id'] : $item['item_id'];
    814818        $root_activity_url = network_admin_url( 'admin.php?page=bp-activity&aid=' . $root_activity_id );
Note: See TracChangeset for help on using the changeset viewer.