Changeset 4111 for branches/1.2/bp-activity.php
- Timestamp:
- 03/11/2011 08:04:13 PM (15 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-activity.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity.php
r4066 r4111 611 611 function bp_activity_get_specific( $args = '' ) { 612 612 $defaults = array( 613 'activity_ids' => false, // A single activity_id or array of IDs. 614 'page' => 1, // page 1 without a per_page will result in no pagination. 615 'per_page' => false, // results per page 616 'max' => false, // Maximum number of results to return 617 'sort' => 'DESC', // sort ASC or DESC 618 'display_comments' => false // true or false to display threaded comments for these specific activity items 613 'activity_ids' => false, // A single activity_id or array of IDs. 614 'page' => 1, // page 1 without a per_page will result in no pagination. 615 'per_page' => false, // results per page 616 'max' => false, // Maximum number of results to return 617 'sort' => 'DESC', // sort ASC or DESC 618 'display_comments' => false, // true or false to display threaded comments for these specific activity items 619 'show_hidden' => false 619 620 ); 620 621 … … 622 623 extract( $r, EXTR_SKIP ); 623 624 624 return apply_filters( 'bp_activity_get_specific', BP_Activity_Activity::get_specific( $activity_ids, $max, $page, $per_page, $sort, $display_comments ) );625 return apply_filters( 'bp_activity_get_specific', BP_Activity_Activity::get_specific( $activity_ids, $max, $page, $per_page, $sort, $display_comments, $show_hidden ) ); 625 626 } 626 627 … … 995 996 function bp_activity_get_user_favorites( $user_id ) { 996 997 $my_favs = maybe_unserialize( get_user_meta( $user_id, 'bp_favorite_activities', true ) ); 997 $existing_favs = bp_activity_get_specific( array( 'activity_ids' => $my_favs ) );998 $existing_favs = bp_activity_get_specific( array( 'activity_ids' => $my_favs, 'show_hidden' => true ) ); 998 999 999 1000 foreach( (array)$existing_favs['activities'] as $fav )
Note: See TracChangeset
for help on using the changeset viewer.