Changeset 2484 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/30/2010 04:53:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r2471 r2484 166 166 add_action( 'wp_ajax_delete_activity', 'bp_dtheme_delete_activity' ); 167 167 168 function bp_dtheme_activity_loop( $scope = 'all', $filter = false, $query_string = false, $per_page = 20, $page = 1 ) {168 function bp_dtheme_activity_loop( $scope = false, $filter = false, $query_string = false, $per_page = 20, $page = 1 ) { 169 169 global $bp; 170 170 … … 174 174 $query_string = 'user_id=' . $bp->displayed_user->id; 175 175 } else { 176 /* Make sure a scope is set. */ 177 if ( empty($scope) ) 178 $type = 'all'; 176 if ( !empty( $bp->groups->current_group ) ) 177 $scope = 'all'; 179 178 180 179 $feed_url = site_url( BP_ACTIVITY_SLUG . '/feed/' ); … … 217 216 218 217 /* If we are viewing a group then filter the activity just for this group */ 219 if ( $bp->groups->current_group) {218 if ( !empty( $bp->groups->current_group ) ) { 220 219 $query_string .= '&object=' . $bp->groups->id . '&primary_id=' . $bp->groups->current_group->id; 221 220
Note: See TracChangeset
for help on using the changeset viewer.