Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/02/2009 10:07:58 PM (17 years ago)
Author:
apeatling
Message:

Fixing registration and avatar bugs with old 1.0 themes in 1.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r2002 r2025  
    283283        $r = wp_parse_args( $args, $defaults );
    284284        extract( $r, EXTR_SKIP );
    285        
     285
    286286        if ( !$original_file )
    287287                return false;
    … …  
    318318        $full_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_FULL_WIDTH, BP_AVATAR_FULL_HEIGHT, false, $avatar_folder_dir . '/' . $full_filename );
    319319        $thumb_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_THUMB_WIDTH, BP_AVATAR_THUMB_HEIGHT, false, $avatar_folder_dir . '/' . $thumb_filename );
    320        
     320
    321321        /* Remove the original */
    322322        @unlink( WP_CONTENT_DIR . $original_file );
Note: See TracChangeset for help on using the changeset viewer.