Skip to:
Content

BuddyPress.org

Changeset 8790


Ignore:
Timestamp:
08/11/2014 04:37:42 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Bit of code clean-up in bp_get_message_thread_avatar().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r8781 r8790  
    651651
    652652                $fullname = bp_core_get_user_displayname( $messages_template->thread->last_sender_id );
    653 
    654                 $defaults = array(
     653                $alt      = sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname );
     654
     655                $r = bp_parse_args( $args, array(
    655656                        'type'   => 'thumb',
    656657                        'width'  => false,
     
    658659                        'class'  => 'avatar',
    659660                        'id'     => false,
    660                         'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname )
    661                 );
    662 
    663                 $r = wp_parse_args( $args, $defaults );
     661                        'alt'    => $alt
     662                ) );
    664663
    665664                return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array(
Note: See TracChangeset for help on using the changeset viewer.