Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:26:55 PM (17 years ago)
Author:
apeatling
Message:

Applying jjj trunk fixes to 1.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-core/bp-core-signup.php

    r2045 r2075  
    173173
    174174                if ( !bp_core_avatar_handle_crop( array( 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) )
    175                         bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ) );
     175                        bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' );
    176176                else
    177177                        bp_core_add_message( __( 'Your new avatar was uploaded successfully', 'buddypress' ) );
     
    209209                return false;
    210210
    211         if ( '' != locate_template( array( 'registration/register.php' ), false ) || '' != locate_template( array( 'register.php' ), false ) )
    212                 die;
     211        if ( locate_template( array( 'registration/register.php' ), false ) || locate_template( array( 'register.php' ), false ) )
     212                wp_redirect( bp_root_domain() . BP_REGISTER_SLUG );
    213213}
    214214add_action( 'signup_header', 'bp_core_wpsignup_redirect' );
    215 
    216 
    217 
    218 
    219215?>
Note: See TracChangeset for help on using the changeset viewer.