Changeset 4648 for trunk/bp-groups/bp-groups-actions.php
- Timestamp:
- 07/12/2011 02:39:11 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-actions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r4524 r4648 14 14 15 15 // If we're not at domain.org/groups/create/ then return false 16 if ( !bp_is_ current_component( 'groups') || !bp_is_current_action( 'create' ) )16 if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) ) 17 17 return false; 18 18 … … 199 199 global $bp; 200 200 201 if ( !bp_is_single_item() || !bp_is_ current_component( 'groups') || !bp_is_current_action( 'join' ) )201 if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( 'join' ) ) 202 202 return false; 203 203 … … 234 234 global $bp; 235 235 236 if ( !bp_is_single_item() || !bp_is_ current_component( 'groups') || !bp_is_current_action( 'leave-group' ) )236 if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( 'leave-group' ) ) 237 237 return false; 238 238 … … 259 259 global $bp; 260 260 261 if ( !bp_is_ current_component( 'groups') || !bp_is_current_action( 'create' ) )261 if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) ) 262 262 return false; 263 263 … … 283 283 global $bp, $wpdb; 284 284 285 if ( bp_is_ current_component( $bp->groups->slug) && isset( $_GET['random-group'] ) ) {285 if ( bp_is_groups_component() && isset( $_GET['random-group'] ) ) { 286 286 $group = groups_get_groups( array( 'type' => 'random', 'per_page' => 1 ) ); 287 287 288 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->slug. '/' . $group['groups'][0]->slug . '/' );288 bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . $group['groups'][0]->slug . '/' ); 289 289 } 290 290 } … … 294 294 global $bp, $wp_query; 295 295 296 if ( !bp_is_active( 'activity' ) || !bp_is_ current_component( 'groups') || !isset( $bp->groups->current_group ) || !bp_is_current_action( 'feed' ) )296 if ( !bp_is_active( 'activity' ) || !bp_is_groups_component() || !isset( $bp->groups->current_group ) || !bp_is_current_action( 'feed' ) ) 297 297 return false; 298 298
Note: See TracChangeset
for help on using the changeset viewer.