Skip to:
Content

BuddyPress.org

Ticket #3500: patch-01.diff

File patch-01.diff, 788 bytes (added by Jonnyauk, 13 years ago)
  • bp-activity/bp-activity-template.php

    #P BUDDYPRESS TRUNK SVN
     
    577577                extract( $r, EXTR_SKIP );
    578578
    579579                if ( !isset( $height ) && !isset( $width ) ) {  // Backpat
    580                         if ( 'full' == $type || ( 'thumb' == $type && bp_is_single_activity() ) ) {
     580                        if ( 'full' == $type || ( 'thumb' == $type && bp_is_single_activity() && is_numeric( bp_current_action() ) ) ) {
    581581                                $height = $bp->avatar->full->height;
    582582                                $width  = $bp->avatar->full->width;
    583 
     583                                $type = 'full';
    584584                        } elseif ( 'thumb' == $type ) {
    585585                                $height = $bp->avatar->thumb->height;
    586586                                $width  = $bp->avatar->thumb->width;