Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2011 05:41:52 PM (15 years ago)
Author:
boonebgorges
Message:

Pass concatenated alt parameter to bp_core_fetch_avatar() throughout forums component. References #3806

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r5433 r5480  
    484484        function bp_get_the_topic_poster_avatar( $args = '' ) {
    485485                global $forum_template;
    486 
     486               
    487487                $defaults = array(
    488488                        'type'   => 'thumb',
    489489                        'width'  => false,
    490490                        'height' => false,
    491                         'alt'    => __( 'Profile picture of %s', 'buddypress' )
     491                        'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $forum_template->topic->topic_poster ) )
    492492                );
    493493
     
    579579        function bp_get_the_topic_object_avatar( $args = '' ) {
    580580                global $forum_template;
    581 
     581               
    582582                if ( !isset( $forum_template->topic->object_id ) )
    583583                        return false;
Note: See TracChangeset for help on using the changeset viewer.