Changeset 5301 for trunk/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 11/08/2011 01:14:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-screens.php
r5268 r5301 99 99 $value = $_POST['field_' . $field_id]; 100 100 101 if ( !xprofile_set_field_data( $field_id, $bp->displayed_user->id, $value, $is_required[$field_id] ) )101 if ( !xprofile_set_field_data( $field_id, bp_displayed_user_id(), $value, $is_required[$field_id] ) ) 102 102 $errors = true; 103 103 else … … 105 105 } 106 106 107 do_action( 'xprofile_updated_profile', $bp->displayed_user->id, $posted_field_ids, $errors );107 do_action( 'xprofile_updated_profile', bp_displayed_user_id(), $posted_field_ids, $errors ); 108 108 109 109 // Set the feedback messages … … 162 162 check_admin_referer( 'bp_avatar_cropstore' ); 163 163 164 if ( !bp_core_avatar_handle_crop( array( 'item_id' => $bp->displayed_user->id, 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) )164 if ( !bp_core_avatar_handle_crop( array( 'item_id' => bp_displayed_user_id(), 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) ) 165 165 bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' ); 166 166 else {
Note: See TracChangeset
for help on using the changeset viewer.