Changeset 9471 for trunk/src/bp-groups/bp-groups-actions.php
- Timestamp:
- 02/10/2015 02:49:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-actions.php
r9466 r9471 96 96 */ 97 97 function groups_action_create_group() { 98 global $bp;99 98 100 99 // If we're not at domain.org/groups/create/ then return false … … 109 108 bp_core_redirect( bp_get_groups_directory_permalink() ); 110 109 } 110 111 $bp = buddypress(); 111 112 112 113 // Make sure creation steps are in the right order … … 361 362 */ 362 363 function groups_action_join_group() { 363 global $bp;364 364 365 365 if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( 'join' ) ) … … 369 369 if ( !check_admin_referer( 'groups_join_group' ) ) 370 370 return false; 371 372 $bp = buddypress(); 371 373 372 374 // Skip if banned or already a member … … 457 459 */ 458 460 function groups_action_sort_creation_steps() { 459 global $bp;460 461 461 462 if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) ) 462 463 return false; 464 465 $bp = buddypress(); 463 466 464 467 if ( !is_array( $bp->groups->group_creation_steps ) )
Note: See TracChangeset
for help on using the changeset viewer.