Changeset 8003
- Timestamp:
- 02/28/2014 01:49:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r7997 r8003 858 858 859 859 // Now fetch the activity comments and parse them into the correct position in the activities array. 860 foreach ( (array) $activities as $activity ) {860 foreach ( (array) $activities as $activity ) { 861 861 $top_level_parent_id = 'activity_comment' == $activity->type ? $activity->item_id : 0; 862 862 $activity_comments[$activity->id] = BP_Activity_Activity::get_activity_comments( $activity->id, $activity->mptt_left, $activity->mptt_right, $spam, $top_level_parent_id ); … … 864 864 865 865 // Merge the comments with the activity items 866 foreach ( (array) $activities as $key => $activity )867 if ( isset( $activity_comments[$activity->id] ) ) 866 foreach ( (array) $activities as $key => $activity ) { 867 if ( isset( $activity_comments[$activity->id] ) ) { 868 868 $activities[$key]->children = $activity_comments[$activity->id]; 869 } 870 } 869 871 870 872 return $activities;
Note: See TracChangeset
for help on using the changeset viewer.