Changeset 5917 for branches/1.5/bp-activity/bp-activity-classes.php
- Timestamp:
- 03/13/2012 09:57:55 PM (14 years ago)
- File:
-
- 1 edited
-
branches/1.5/bp-activity/bp-activity-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-activity/bp-activity-classes.php
r5915 r5917 135 135 // Exclude specified items 136 136 if ( !empty( $exclude ) ) { 137 if ( is_array( $exclude ) ) { 138 $exclude = implode ( ',', array_map( 'absint', $exclude ) ); 139 } else { 140 $exclude = implode ( ',', array_map( 'absint', explode ( ',', $exclude ) ) ); 141 } 142 137 $exclude = wp_parse_id_list( $exclude ); 143 138 $where_conditions['exclude'] = "a.id NOT IN ({$exclude})"; 144 139 } … … 146 141 // The specific ids to which you want to limit the query 147 142 if ( !empty( $in ) ) { 148 if ( is_array( $in ) ) { 149 $in = implode ( ',', array_map( 'absint', $in ) ); 150 } else { 151 $in = implode ( ',', array_map( 'absint', explode ( ',', $in ) ) ); 152 } 153 143 $in = wp_parse_id_list( $in ); 154 144 $where_conditions['in'] = "a.id IN ({$in})"; 155 145 }
Note: See TracChangeset
for help on using the changeset viewer.