Changeset 5729 for trunk/bp-groups/bp-groups-actions.php
- Timestamp:
- 02/11/2012 09:32:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r5714 r5729 111 111 // Checked against a whitelist for security 112 112 $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) ); 113 $invite_status = !empty( $_POST['group-invite-status'] ) && in_array( $_POST['group-invite-status'], (array) $allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';113 $invite_status = !empty( $_POST['group-invite-status'] ) && in_array( $_POST['group-invite-status'], (array) $allowed_invite_status ) ? $_POST['group-invite-status'] : 'members'; 114 114 115 115 groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status ); … … 156 156 * we need to loop the step array and fetch the next step that way. 157 157 */ 158 foreach ( (array) $bp->groups->group_creation_steps as $key => $value ) {158 foreach ( (array) $bp->groups->group_creation_steps as $key => $value ) { 159 159 if ( $key == $bp->groups->current_create_step ) { 160 160 $next = 1; … … 276 276 return false; 277 277 278 foreach ( (array) $bp->groups->group_creation_steps as $slug => $step ) {278 foreach ( (array) $bp->groups->group_creation_steps as $slug => $step ) { 279 279 while ( !empty( $temp[$step['position']] ) ) 280 280 $step['position']++; … … 287 287 unset($bp->groups->group_creation_steps); 288 288 289 foreach( (array) $temp as $position => $step )289 foreach( (array) $temp as $position => $step ) 290 290 $bp->groups->group_creation_steps[$step['slug']] = array( 'name' => $step['name'], 'position' => $position ); 291 291 }
Note: See TracChangeset
for help on using the changeset viewer.