Changeset 8673 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 07/23/2014 02:43:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r8542 r8673 671 671 } 672 672 673 // If the uploaded image is smaller than the "full" dimensions, throw 674 // a warning 675 $uploaded_image = @getimagesize( bp_core_avatar_upload_path() . buddypress()->avatar_admin->image->dir ); 676 $full_width = bp_core_avatar_full_width(); 677 $full_height = bp_core_avatar_full_height(); 678 if ( isset( $uploaded_image[0] ) && $uploaded_image[0] < $full_width || $uploaded_image[1] < $full_height ) { 679 bp_core_add_message( sprintf( __( 'You have selected an image that is smaller than recommended. For best results, upload a picture larger than %d x %d pixels.', 'buddypress' ), $full_width, $full_height ), 'error' ); 680 } 681 673 682 // Set the url value for the image 674 683 $bp->avatar_admin->image->url = bp_core_avatar_url() . $bp->avatar_admin->image->dir;
Note: See TracChangeset
for help on using the changeset viewer.