Skip to:
Content

BuddyPress.org

Changeset 1792


Ignore:
Timestamp:
09/04/2009 07:00:54 PM (15 years ago)
Author:
apeatling
Message:

Fixes #964

File:
1 edited

Legend:

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

    r1760 r1792  
    8383    if ( $width )
    8484        $html_width = " width='{$width}'";
    85    
     85    else
     86        $html_width = ( 'thumb' == $type ) ? ' width="' . BP_AVATAR_THUMB_WIDTH . '"' : ' width="' . BP_AVATAR_FULL_WIDTH . '"';
     87       
    8688    if ( $height )
    8789        $html_height = " height='{$height}'";
    88 
     90    else
     91        $html_height = ( 'thumb' == $type ) ? ' height="' . BP_AVATAR_THUMB_HEIGHT . '"' : ' height="' . BP_AVATAR_FULL_HEIGHT . '"';
     92   
    8993    $avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', $bp->root_domain . '/' . basename( WP_CONTENT_DIR ) . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );   
    9094    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );   
Note: See TracChangeset for help on using the changeset viewer.