Changeset 2075 for branches/1.1/bp-core/bp-core-signup.php
- Timestamp:
- 11/02/2009 06:26:55 PM (17 years ago)
- File:
-
- 1 edited
-
branches/1.1/bp-core/bp-core-signup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-core/bp-core-signup.php
r2045 r2075 173 173 174 174 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' ); 176 176 else 177 177 bp_core_add_message( __( 'Your new avatar was uploaded successfully', 'buddypress' ) ); … … 209 209 return false; 210 210 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 ); 213 213 } 214 214 add_action( 'signup_header', 'bp_core_wpsignup_redirect' ); 215 216 217 218 219 215 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)