Changeset 1714 for trunk/bp-core/bp-core-signup.php
- Timestamp:
- 08/27/2009 05:43:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r1682 r1714 138 138 139 139 $bp->avatar_admin->step = 'upload-image'; 140 140 141 141 /* If user has uploaded a new avatar */ 142 142 if ( !empty( $_FILES ) ) { … … 144 144 /* Check the nonce */ 145 145 check_admin_referer( 'bp_avatar_upload' ); 146 147 $bp->signup->step = 'completed-confirmation'; 146 148 147 149 /* Get the activation key */ … … 152 154 $bp->signup->avatar_dir = wp_hash( $bp->signup->key ); 153 155 154 /* Pass the file to the avatar upload handler */ 155 $errors = bp_core_avatar_handle_upload( $_FILES, 'bp_core_signup_avatar_upload_dir' ); 156 157 if ( !$errors ) { 158 $bp->signup->step = 'completed-confirmation'; 156 /* Pass the file to the avatar upload handler */ 157 if ( bp_core_avatar_handle_upload( $_FILES, 'bp_core_signup_avatar_upload_dir' ) ) { 159 158 $bp->avatar_admin->step = 'crop-image'; 160 159 161 160 /* Make sure we include the jQuery jCrop file for image cropping */ 162 161 add_action( 'wp', 'bp_core_add_jquery_cropper' ); 163 } 162 } 164 163 } 165 164 } … … 191 190 return false; 192 191 193 $path 192 $path = get_blog_option( BP_ROOT_BLOG, 'upload_path' ); 194 193 $newdir = path_join( ABSPATH, $path ); 195 194 $newdir .= '/avatars/signups/' . $bp->signup->avatar_dir;
Note: See TracChangeset
for help on using the changeset viewer.