Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/25/2011 12:01:55 AM (14 years ago)
Author:
boonebgorges
Message:

Global/slug audit for groups component. Also regularizes the way that some group forum actions are concatenated. See #3325

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-actions.php

    r4823 r4844  
    3030
    3131    // If no current step is set, reset everything so we can start a fresh group creation
    32     if ( !isset( $bp->action_variables[1] ) || !$bp->groups->current_create_step = $bp->action_variables[1] ) {
     32    if ( !bp_action_variable( 1 ) ) {
    3333
    3434        unset( $bp->groups->current_create_step );
     
    4343
    4444    // If this is a creation step that is not recognized, just redirect them back to the first screen
    45     if ( $bp->action_variables[1] && !$bp->groups->group_creation_steps[$bp->action_variables[1]] ) {
     45    if ( $step = bp_action_variable( 1 ) && !$bp->groups->group_creation_steps[$step] ) {
    4646        bp_core_add_message( __('There was an error saving group details. Please try again.', 'buddypress'), 'error' );
    4747        bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/' );
Note: See TracChangeset for help on using the changeset viewer.