Skip to:
Content

BuddyPress.org

Changeset 3480 for trunk/bp-activity.php


Ignore:
Timestamp:
11/23/2010 11:17:59 PM (16 years ago)
Author:
boonebgorges
Message:

Adds parameter to bp_has_activities chain to allow filters to apply only within a given set of activity ids. Fixes activity filtering on Favorites tab. Fixes #2442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r3468 r3480  
    609609                'show_hidden' => false, // Show activity items that are hidden site-wide?
    610610                'exclude' => false, // Comma-separated list of activity IDs to exclude
     611                'in' => false, // Comma-separated list or array of activity IDs to which you want to limit the query
    611612
    612613                /**
     
    633634                }
    634635        } else
    635                 $activity = BP_Activity_Activity::get( $max, $page, $per_page, $sort, $search_terms, $filter, $display_comments, $show_hidden, $exclude );
     636                $activity = BP_Activity_Activity::get( $max, $page, $per_page, $sort, $search_terms, $filter, $display_comments, $show_hidden, $exclude, $in );
    636637
    637638        return apply_filters( 'bp_activity_get', $activity, &$r );
Note: See TracChangeset for help on using the changeset viewer.