Changeset 3480 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 11/23/2010 11:17:59 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r3373 r3480 89 89 // Static Functions 90 90 91 function get( $max = false, $page = 1, $per_page = 25, $sort = 'DESC', $search_terms = false, $filter = false, $display_comments = false, $show_hidden = false, $exclude = false ) {91 function get( $max = false, $page = 1, $per_page = 25, $sort = 'DESC', $search_terms = false, $filter = false, $display_comments = false, $show_hidden = false, $exclude = false, $in = false ) { 92 92 global $wpdb, $bp; 93 93 … … 121 121 if ( $exclude ) 122 122 $where_conditions['exclude'] = "a.id NOT IN ({$exclude})"; 123 124 // The specific ids to which you want to limit the query 125 if ( !empty( $in ) ) { 126 if ( is_array( $in ) ) 127 $in = implode( ',', $in ); 128 $where_conditions['in'] = "a.id IN ({$in})"; 129 } 123 130 124 131 // Alter the query based on whether we want to show activity item comments in the stream like normal comments or threaded below the activity
Note: See TracChangeset
for help on using the changeset viewer.